Actually, double-blind taste tests was reputedly in favor of Pepsi. Pepsi, for a long time, used this in their marketing, and Coke confirmed the results for themselves, which was the main driving force behind the creation of the disastrously failed New Coke.
It would seem that the tasted of Coke is affected as much by its branding as by its recipe!
There was an interesting experiment where some researchers put subjects inside an MRI machine, and then fed them two samples of cola. Sometimes both drinks were anonymous, and sometimes the drink was labelled as Pepsi or Coca-Cola, while the other was anonymous but actually the same drink. When the drinks were anonymous, people seemed to like both equally, but when told what the drinks were, people tended to prefer Coca-Cola over the anonymous drunk. Even more interestingly, when people were told they were drinking Coca-Cola, extra bits of their brain lit up, specifically memory and cognitive control, which suggests that when you think you're drinking Coca-Cola, it's not just the immediate sensation of drinking the coke that affects how much you enjoy it, but also the effect of all of that marketing that makes your brain think "Mmmm, Coca-Cola is delicious!"
http://health.usnews.com/usnews/health/briefs/mentalhealth/h...
Pepsi tastes better than Coke on a single sip because it's sweeter, but the preference among consumers gets murkier if you have to drink a whole can of the stuff. And even moreso if you want to have two cans.
Sweeter == better to have a taste. Not necessarily to have larger quantities though.
http://www.nytimes.com/ref/business/20070527_COKE_GRAPHIC.ht...
I was, however, surprised at how difficult it was to find Coke in many restaurants in the US. That's not usually the case in the UK, for example.
Similarly, the cola wars never made sense here - Coke tasted far superior to Pepsi, how could there even be a competition?
Then I visited the US and only had access to the corn-syrup coke, which I'd never had before, as we have our own sugar industry. Tasted much more like Coke Zero - it seems we'd just imported the US advertising slogan there. And the cola wars made much more sense... well... not in themselves, just that they could have happened.