Hats off to you for that.
I have a close friend whom I didn’t stand up for when our supervisor told her, verbatim*, “You must decide what you want to do with your life. Do you want to do a PhD, or get children?”
And didn’t have the courage, at least in years to follow, to tell him what I thought of that - even when I was drunk.
I left that particular lab, and gave away my first chance to a career in academia. (Gave away some more, later.)
*(translated, of course, so not really verbatim)