ISTM we're considering two different problems here. The first, and more important from society's POV, is that there aren't enough women working in the industry. The second, and for some much more personally important, is to avoid being sued for harassment. The people who worry about the latter may be grossly overestimating the danger, but their reactions to that overestimate could still make the first problem worse. Reactions like "same-sex environments", for instance.
ISTM we're considering two different problems here. The first, and more important from society's POV, is that there aren't enough women working in the industry. The second, and for some much more personally important, is to avoid being sued for harassment. The people who worry about the latter may be grossly overestimating the danger, but their reactions to that overestimate could still make the first problem worse. Reactions like "same-sex environments", for instance.