I think it might be useful to ask: In what ways are Math and Physics are different from the programming field? I think the requirement to work together on larger projects is different. What is the gender distribution of physicists working at CERN?
My experience in school is that the smartest girls studied a lot more, and the smartest guys messed around a lot more.
Sounds about right.
CS is programming and programming is a lot of messing around.
Is it? Back in the day, there were CS professors who proudly declared they didn't like programming.