No, a better solution would be to fix the rampant problems of sexism in tech so that women aren't driven out of it.
Problem should be fixed. They should be fixed because they are problems that make lots of people unhappy and keep them out of high paying jobs.
Women aren't stupid for choosing to not subject themselves to rampant sexism. That's actually smart. But fixing a huge problem that effects lots and lots of people is objectively a good thing.
Your argument is equivalent to saying "hey, black people don't want to report things to the police, because they are afraid of the police (do to them being shot at a much higher rate), but that's THEIR problem because it is their life and their choice to not have access to the police system whenever a crime accures to them and they choice to not report it".
That argument would be a bad argument, because even though they are "choosing" to not report things to the police (and therefore have to way to not get justice for crimes committed against them), we should still work to fix the problem of them being RATIONALLY afraid of the police (perhaps by trying to convince police to shoot them less).
Look, if you really don't care about a major problem that is effecting lots of people, we could at least look at this from a purely selfish perspective for the company. When women leave an industry the company loses lots of money, because they have lost a high skilled worker.
Therefore it is an objectively good thing for the tech industry to solve this major problem that is causing the industry to lose so many highly skilled workers. Because that cost money.
The reason there are more articles about this than simply bad management is because a hostile work environment for lots of people is a much worse problem that effects people in worse ways.
How do I "know" that it is a worse problem? Well that's because women are being driven out in droves. Obviously it is a worse problem, as evidenced by the sheer number of people for whom it causes to leave their very high paying jobs.