I agree, women should not be discouraged from the CS field. It is in fact bizarre to me that someone would tell women they don't belong in CS.
But my point is that this is not particularly offensive, it's purely a pun. I think being oversensitive can be as damaging as being unsensitive.
While it's not nice to accept, most women I know well in computing have had bad experiences with "bro"-type people, saying they shouldn't / can't use a computer because they are a woman. On an at least monthly basis. For years. It grinds slowly over time.
If you think CS is professional, I've got some bad news for you -- there are quite a lot of toxic badly behaved people around unfortunately.