And then Rome fell, and chivalry rose. Knights were the epitome of badass. They weren't the spear-wielding conscript rabble, these guys were the heroes leading the charge. Also, they were apparently legally entitled to have their manly way with your wife and/or daughters. But that's another horrifying matter, right there.
But, swords, they combine the control of a knife with a good chunk of the reach of a spear. They aren't as economical as spears, but with training and experience, they were definitely more effective. Spears are clumsy and inaccurate (dare I say, random?) in comparison. The sword was the mark of a skilled and accomplished warrior.
Yet another source of glamor for the sword are the samurai. I don't even need to explain those guys, you all know.
^A lot of your points are true for legend... yet outside of reality. Yes, the nobility idealized the sword and knights are famous for it. However, there are hundreds of instances in history where idiot cavalry charging nobility got royally hosed up by base pike-wielding soldiers.
Look up how Switzerland gained it's freedom from Rome sometime, Up until the age of guns and cars, the high born have viewed mounted combat in the highest esteem, and throughout the ages intelligent leaders have seen through it and won wars on the use of pole-arms. Even the Samurai, steeped in sword culture as they are, utilized spears regularly and actually first became famous partly because of them.
What made the Samurai famous in the first place and allowed them to ascend into a culture of warrior noblemen from the peasantry that started them was a certain technique where mounted Samurai would charge out in battle armed with Yuma (longbow), harry enemy troops and then retreat behind a line of footmen wielding Yari (Japanese spear). Just as in Rome and England, the noble horsemen then got hosed up by spear wielding peasants. This practice continued in Samurai culture long after they carved out their niche in noble society and adopted the Daisho as their defining weapons.
You are thinking more on the line of dueling, and less on the scope of actual wartime combat. (which is fine, as most rpgs, both western and eastern, focus more on dueling/small scale than on actual military operations.) And that is where the sword shines brightest, both in the east with tales of great swordsmen such as Miyamoto Musashi and in the west where duels of all kind became overly famous in the middle ages with tourneys held to test the metal of knights and as you've already mentioned, the gladiators of Rome. The problem is that while these duels and small scale conflicts are what gets the 'glamor' and is memorialized and romantacised in literature and art, the true grit and terror of war are largely glossed over. Leaving most spectators with a hazy idea of how such battles work at best. The truth is that bows and pikes generally lead the way in medieval times, and wars were won by the peasantry who wielded them and the generals who utilized them, not the knights who held their noses up and spent their time drinking and dueling and 'glamorizing' the sword.