"Don't really belong" is not at all the same things as a biological predisposition to be more inclined/able for a type of work. Averages are just that, averages. One should always hire/promote the best candidate. The issue is if there is an imbalance in gender in a field what do you do? Do you spend a lot of money on diversity programs? Do you weigh women applications higher than male ones? Do you require hours and hours of training to make the place more welcoming? Or do you just say 'hey maybe not as many women want to do this line of work... or on average are as likely to be good at it.'
Here's the thing though. Even if there ISN'T a biological predisposition to being better/worse at tech jobs doesn't even matter for this story IMO. Merely bringing it up shouldn't mean someone should be canned. It should be discussed openly without anger, vitriol or hyperbole.