With all due respect, any good product needs both. The idea that a good product will succeed without good marketing is simply false, it is completely disconnected from the reality we live in. Of course the inverse is also true, good marketing will not make a bad product succeed.
You need both...