Once again: compared to other STEM fields, women participate less in CS than any other field except physics. By double digits percentage more in mathematics PhDs. Statistics is almost 50/50. Several rigorous earth sciences fields --- chem and biochem, for instance --- have 50% or greater female participation. One thing all these fields have in common is that they are more intellectually rigorous and harder to succeed…
It's unlikely that's due to two completely different mechanisms, so I'd put more stock in theories that explain both situations.