Both of those statements, even if true, say absolutely nothing about the relative abilities of men and women to write software.
I know it's trendy to defend feminist talking points, but it ultimately leads to what we see now with the Google firing: a public conversation where facts take a secondary role to ideology/dogma.
On the other hand, there is evidence that cultural biases specifically discourage women from entering, and push women out of, STEM careers.