Being kind or being sexist

Ok. So hitting a girl. I Know not the nicest of topics, but is It sexist to not hit a girl because She is a girl. No one really wants to be hit but if the situation is exactly the same and the man is hit but not the woman. isn't that sexism at its best? Tell me your thoughts please.