I teach my children that they must suck up to the teacher to get a grade from them especially if they disagree. If they think the teacher is a total jerk they need to save those thoughts and feelings for graduation day.
This teacher may think her students agree with her but she would probably be surprised how many merely tell tell her what she wants to here.
Yes, that's very true. She would be shocked to hear the opinions of her and of her classes from students whom she'd be certain were on her side! The deluded are always the last to find out.
My dad gave me the same advice when I was in a history class taught by a particularly odious dogmatic professor. I could not drop the class. So dad's advice was to grit my teeth, regurgitate back to the prof what the prof said, and to forget about the whole class afterwards. I did, and it worked out for me rather well since I got an "A" in that class. It's easy to play the game, once you realize that it's nothing more than a game. My dad also taught me to think for myself, a legacy I carry on to this day many years later. I do my own history research now, and the insane comments of that prof from years ago are unimportant to me now.