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.