Your analysis fails to distinguish between programming and other competitive fields, such as law and academic science. But the proportion of women in those fields is increasing, whereas it's decreasing in programming.
I'm not saying competition is the only cause, just that it's a root cause. I haven't heard your claim before, so if you have numbers, I'd be interested to see them.