Explicitly choosing to hire women and pay them less is not acceptable. Not hiring someone who happens to be a woman at the same rate as an equally qualified man is completely acceptable.
And I'm not alleging explicit widespread prejudice here; I'm giving a hypothesis to explain behavior caused by implicit biases.