I completely agree that people in general, and women in tech specifically, have to be thick-skinned to survive professionally. Nobody's advocating HR thought police--they'd be unnecessary in this case anyway--or politically-correct automatons. We're talking about kids. Kids! Surely it's not totally out of line to suggest that they could learn better behavior than "get in the kitchen and make me a sandwich". Surely there's a better response to the whole situation than "that girl needs to suck it up and learn how the world works".
For what it's worth, I remember the first time those trite cliches were thrown at me, and they felt neither trite nor cliched. They hurt. I thought I was part of a team, among equals, brothers-in-arms, friends, and I wasn't. I was different, I was other, I was less, I was not welcome. It's a paradigm shift that happens in an instant, and it can be pretty shattering--great for killing enthusiasm and developing thick skin in the future, maybe, but not for learning things in a programming class.