It's not a joke to discriminate, which is what you are suggesting. You may find it funny to discriminate against people due to sex, race, political leaning, but then thats the kind of person you are.
I think it's a joke, but that doesn't make it right or funny.