Charging spear units head on is a bad idea with anything, sword armed or not. Swordsmen might be good at killing spears, but they will take heavy casualties when charging them face first. Using a hybrid to first charge the flank, or draw them around to expose a flank and disrupt their ordered formation, followed by a flank charge by another hybrid or HA is the best way.