Discrimination in hiring is always harmful, what matters is if its acceptable. If you don't hire a high school drop out to be a physicist, he is objectively worse off (harmed). Even if you assume that men are better off than women (I don't) discrimination is harmful (they are worse off), but they wind up still better off than the woman so its acceptable.