Everyone growing up under patriarchy has misogynism in them somewhere - I have no doubt that given time my own children will too, despite all the effort I go to trying to counter that.
This is probably going to come out wrong, but I'm going to attempt it anyway... 😬
It goes without saying that assaulting your girlfriend (pregnant or not) is a big no go and obviously marks someone as having misogynism within their psyche - but are we going to negate the views of every single man (or woman even) who says something sensible, based on something they have said or done in the past? It doesn't make sense to me, what about all of the people who have done something equally bad and we just don't know about it? For eg, think of DV reports or how often rape is prosecuted - think how many men are championed based on their outward appearance when something sinister is hiding in their past? At least with RL we know about it and can put comments into context based on an overall perception!
People are very rarely black/white, good/bad. I'm sure even your heroine (whoever that may be) has some sort of comment, view or activity lurking in their past that would make them write-off-able if it were that simple.