That's a complicated question to answer! The short answer is that literally every variable involved in brewing affects taste - brew time, water mineralization, water temp, grind, brewer, bean origin, processing method, roast temp.
Espresso and slow brew coffee are probably the furthest apart, and many people like one and not the other, it's a personal preference. But even if you like slow brew, there's not a single one that tastes better than all the others. That's a little like asking which wine tastes the best. Some wines taste objectively terrible, but after a certain point it comes down personal taste. Some people like darker vs lighter roasts, high vs mellow acidity, and on and on.
If you just need somewhere to get started, I would start with slow brew because it's much cheaper. A good grinder can be expensive, but there are inexpensive manual grinders that do a decent job. Watch some videos, buy some coffee, and see what you like.