I'm heterosexual and if I'm sexually harassed by a male homosexual I punch them once, walk away. Do you think the sexual harassment vs physical assault would hold water?

I ask this because if a guy sexually harrasses a woman and she slaps him she walks.