Irrational behavior should show up as noise in the system, not the order-of-magnitude bias we're observing. That strongly suggests that the bias is the result of rational actors, not the irrationality of their behavior.
OTOH preferring a job that pays $100k to a job that pays $50k would take a lot of irrationality. I suspect that most women are not that irrational at all, so there must be something very unpleasant that prevents them from landing these jobs in a reasonably equal proportion with men.
Now, as a group behavior, discrimination is rational. If my side is strong, oppressing the other side keeps my side strong and makes it stronger, and then weakens the other side. The moral dilemmas can then be rationalized away with fancy words.
As an individual member of a group that practices discrimination, it's also rational. I can go along with my peers, accept the fancy words even though I realize they're probably nonsense, and benefit from the superior strength of my side. Or, I can call out the immorality and nonsense, and get shunned and locked out of the benefits of my position.
Once you take morality out of it, discrimination is rational behavior. Making up ridiculous lies to justify discrimination is rational behavior. It's one thing to not believe it, another thing to act against it.
Only if you make the assumption that people make career choices that organically fit into equilibrium and as rational actors. Drawing a dichotomy seems naive.