How do I avoid plot armor?

There’s a scene in my story where my protagonist, who is not a very experienced warrior, has to face another girl, who is a very experienced warrior, in a match to the death.

How can the protagonist win without coincidence or randomly becoming skilled in the middle of the fight? And how do I make the win feel earned?