You are oversimplifying by assuming that the supply of applicants for a given job is gender-neutral. I think it's generally accepted that one of the causes of the wage gap is that women are pushed toward stereotypically "female" careers, and those usually pay less.