The Swordmaster cannot be beaten with better swordplay. She has to be beaten with better insults.
Every duel is a contest of comebacks, and you need a witty, relevant retort ready for whatever she throws at you. Running out of good lines means losing the fight.
Guybrush builds his arsenal by wandering the paths of the main map and insulting random pirates he runs into. When a pirate fires back with a line that lands, Guybrush learns it and can use it later. Collect enough of the right responses and the Swordmaster is yours.