Indeed if you control for these there’s no gap in the outcome variable (pay) but there is a huge gap in the n variable (number of women).
The question to ask then is why does that happen? Are the reasons for that valid? Are equal opportunities available? Do we even want equal opportunities as a society or an individual?