Gentle (not 'gentile') humor poking fun at our human foibles, which 'sometimes' include noting how stereotypes are based in reality, can help us gain perspective.
Sadly, some can't tell when they are crossing the line from gentle to insulting. If in doubt, don't say it.