I suspect what is actually happening with so called “political correctness” the younger generations are becoming far more aware of social and cultural biases. So they try their best to correct these norms. But being young, it’s easy to miss context and nuance as they are still learning. This causes a backlash from the older generation because they feel threatened and offended that they are being told they are racist/sexist/biased (which is sometimes accurate, sometimes not.)
This in turn causes resentment.
It’s important to remember that a lot of the time these so called “censorship mobs” are often times either online, which is already extreme but also really niche. And that sometimes it’s just a bunch of hippy kids who don’t always realise when they are caught up in the righteous indignation fury.
A joke depends on the intent, delivery and who it’s targeted towards. You can tell a racist joke, as long as people are laughing at the racist, not with them.
Characters like Barney from How I met your mother work because you have the rest of the characters calling out his behaviour as problematic. So you’re clearly not supposed to emulate him, rather you’re supposed to be critical of him. Even if one may find him endearing.
There is more nuance at play than simply being offended. Poor technique is often called out as being in poor taste and offensive, because it often is.
But this is just what I’ve personally observed. I can understand the theory, I just don’t always know when something goes too far. Because like I said, I am desensitised.