>
Then I found I preferred it over Pepsi.You "found" that either because of advertising, or because you were primed to like Coke more because of your childhood experience.
And the reason McDonald's only sold Coke? Advertising, of course. McDonald's believed they were better off selling Coke over Pepsi.
Advertising is everywhere. I try to avoid advertising as much as possible (adblockers, never watching ad-supported TV or movies, etc.) because I know how pervasive ads are, and how insidiously emotionally manipulative they can be. I know I can't make myself immune to their effects, so the best I can do is just avoid them as much as I can.