Put a guy with a spear (no throwing allowed) up against a guy with a sword. They are going to win against the sword about 9 out of 10 times.
Spears aren't magical. I mean, in D&D you can have a magic spear, but no, they aren't some uberweapon that by design suddenly beats all others.
You know why we know this? Because swords actually got used in the real world, a lot. The real world doesn't use game stats, and has no raise dead. If spears actually won 9 times out of 10 because of the weapon, and not the user's skill, then noboy'd use a sword.
In reality, if you put a single person with a sword and a single person with a spear against each other, then it is all up to skill. Realistically, the guy with the spear has one single chance to hurt his enemy, after which that guy with a sword is inside the spear's reach, and his weapon is useless.
Oh, and the guy with a sword probably has a shield to take that first hit, after which, he's inside the spearman's reach, and the spearman is toast.
This is why spears and pikes are usually used in groups - so that getting inside the spear's reach is hard.