You could have been a great person by just turning around and telling those guys that this is not cool. Instead you resorted to playing the 'female' card.
Even sadder that your employer doesn't see things any other way. In fact, you should be happy that you are not employed by people who easily fall to emotional terrorism. Might have been a great coding job but it's better to work with people who think like you and not just code like you.
/me just do something already