It's true that when you hit someone with a baseball bat, there's not much difference between "on the head" and "over the head." Both could impact the same location.
As GG says, "over the head" implies that the direction of the stroke is from above, or directly downward. So the impact would likely be to the very top of the head.