Real racist jokes or sexist jokes aren't funny - not because they're offensive, but because they're not true. As soon as a joke is based on an untruth, it's not funny.
I remember as a boy when the conversation on civil rights was won in the South. I remember a time when one of my friends made a racist joke and another said, 'Hey man, we don't go for that anymore.'