I tend to agree that females can be better. But in different ways and there's a caveat. Here goes my n=1.
I have the privilege to work with a female developer and she's amazing. By far the most productive among our team of devs in terms of feature output.
Her concentration is unmatched as if she was on adderall all day but she doesn't take any drug.
However her peak in terms of technical excellence is not as high as some of the male developers. Her code is good but not the best. And that's fine.
Once during lunch I asked if she knew any other female dev so we could bring to the team. She smiled and promptly replied: "No way I'm working with other girls. They are too chatty, dishonest and tend to pull the carpet from under you. I say that because I'm a girl and I would rather work with guys."
Needless to say I was not expecting that response.
One thing I noticed is she can multitask much better than us male developers on the team. My context switching cost is quite high to the point I get annoyed when I have too much on my plate while her limit for juggling simultaneous tasks seems to be much higher.
I guess what I wanted to say is that, from my experience, both females and males often excel in different things. And I'd wager that's related to hormones like my parent wrote.