Who will read this and hesitate the next time they're about to hire a woman because they're the best candidate for the job?
"If one person claims there's gender-based harassment in the company, it would really affect our valuation...Better go with the slightly less-good-fit male candidate."
Of course I don't know what happened exactly, but fixing problems from within seems more effective than leaving a place and pointing fingers. Nobody likes to get pointed at.