Even though D&D treats the longsword and rapier as similar weapons, they behave quite differently in practice. What would happen if a longsword wielder faced off against a fighter with a rapier? Would the longsword be out-manoevered by the rapier? Or would the rapier wielder be at a disadvantage, unable to effectively parry the heavier longsword?

There’s only one way to know for sure.