IS she your friend, OP? Or is she just someone you've gravitated toward for convenience's sake, because you both happen to have children of a similar age?
IME, these tend to be fair weather and fairly transient 'friendships', not the ones that last. And that's fine. To everything there is a season, and all that. I'm not in touch with the mothers from DC's nursery days anymore, even though I liked them at the time. We've moved on. You'll probably find that when your two children go to school you'll drift in any event.
A difference of opinion is fine. A ten-minute political rant, not least one involving criticism of you and your choices, is something else entirely. In no circumstances would I be inclined to sit there and be browbeaten like that.
You teach others how they can treat you, OP, and whilst it's fine to disagree - my friends come from many political persuasions and of course we can't all coincide - the behaviour you mention above is not okay. You can think: 'you don't value me, if you can speak to me that way, but I value myself too much to entertain it'.
Step back, and give yourself full permission and validation to do so. Once you start valuing yourself more, real friendships - not compromises because there's no one better around - will follow.