Medicine and the law both overtly "self-corrected" successfully, creating marked and durable improvements to gender parity that benefited the fields.
For example, women leave the workforce earlier and more often. So we now get less work years per education year in these fields. Benefit? Not from the POV of the person paying for all this education and these services.