Answer:
Flirting includes just verbal activity of commenting. When the girl is against it the male usually comments on the physical appearance (like on road sides). When the girl is okay with it they flirt with one another.
Sexual harassment is a brutal physical torture where the girl is raped (obviously against her wish). Mostly in flirting there is no physical harassment but sexual harassment included making her do things completely against her wish.
(viewers this is an academic answer. Please don't report it as adult content)