I disagree that it has nothing to do with gender.
Men aren't always self-aware enough to behave well either. Men often project their anger and shame on to others too, but women are socially conditioned to be nice even if they don't know why they're seething with resentment or anger.
I have very good relationships with women on a one to one basis but quite often in a group there will be one covert scapegoating narcissist who will be love bombing everybody else and totally icing me with the coldest cold shoulder.
It is a situation that has happened to me a few times now. I could never understand it until I read up on familly systems and understood that my family of origin role of scapegoat was following me about.
Not that that's what is happening to the OP as she's not a scapegoat. But women who haven't resolved their shame and who aren't self-aware (the whole jungian shadow thing) will project their shame on to some other woman who in a way reminds them of them self. The women who have given me the cold shoulder have all been in my opinion pretty similar to me in many ways, except that I internalise my doubts and fears (or tended to) and then externalise them.
A lot of the passive aggressive women who do this have literally no idea they are being so awful. They may think you completely deserve the silent treatment or the dig or to be corrected in public.
I've read a lot of books about bullying in the hope that I would finally get some answers and the only thing that comes close is the trauma /stress responses (Pete Walker sets them out very well).
Now i understand that something about me threatens the women who have done this to me. I'm never the most intelligent, the most successful, the most qualified. But the purpose I was serving was in their eyes to be BENEATH them, and when I did or said something that tipped them off to the fact that I didn't buy in to the hierarchy that existed only in their head, for example, defending a boundary, then they felt their shame and instantly projected it back on to me, casting me in the role of enemy.
Somebody in my extended family has been doing this to me for nearly a year now. She is nuts! Absolutely out of her mind nuts but so lovely to everybody except me, nobody but me knows her. She kisses up, she kicks down. I apparently am down.
So OP, that is my guess as to what's going on here, the woman who undermined you was putting you back in your place, ie, beneath her.