For me in real life, I might have a chance of successfully using a gun, so the gun wins. In general, guns win in real combat unless it's a really pathetic gun vs. a hulking monster of a man. No stopping power=no victory.
As far as coolness goes, it's much easier to look cool with a sword than with a gun. I do think swords are a bit overused though; I'd like to see more frequent impressive uses of things like axes, spears, halberds and so on in video games and anime. Overall, swords win the coolness battle but not the life-or-death battle.