There may never have been a worse moment to be a corporate defendant battling a gender discrimination suit.

First came the spotlight on the Silicon Valley gender gap. Then Harvey Weinstein and the #MeToo movement inspired a corporate reckoning that has led to high-profile firings and lawsuits.