Let's compare to something analogous like recruiting an executive or manager to take on to a dysfunctional org/team. We don't ask "well if the good managers don't join, how will it ever get better?". We create incentives to get these better people to join (or let the ship sink). But we intrinsically look at it as a burden worth compensating, and I'd expect companies with this level of bad PR to look at doing the same.
But also, as you mention, many companies have disappointing gender ratios, so it's not like I'd pass on a company purely because of that. It's more like another data point to consider. And conversely, if a company does have a higher portion of female engineers, that will weigh strongly in its favor.