You know it when you see it.
But, here’s an example of what I find funny: someone trying to be really, really woke on social media, and then getting beautifully skewered for it. Then, a twist comes when you realize that the account in question is a very subtle parody of an SJW. It’s hard to distinguish between SJWs and parodies of SJWs, but when a parody is done well, it’s terrific.
Have a look at this example:
But, in general, I love Seinfeld. It’s probably the best sitcom ever, but some would probably disagree. Even I would be tempted to nominate Fawlty Towers as the greatest. Yes, Minister was terrific, as was The Simpsons back in the '90s. South Park is still funny, all these years later.
When I heard Louis CK’s latest routine, I loved it! “You didn’t get shot, you pushed some fat kid in the way.” God that is hysterical.
What I know about comedy, and I’m sure you already agree, is that you can’t force it, and you shouldn’t confuse zany with funny. Different things. Comedy can be cynical, sarcastic, abrasive, brash and rude, but it should never be mean-spirited. So you can tell Holocaust jokes, you can tell jokes about the Parkland shooting, you can tell jokes about rape and abortion, whatever. But it’s easy to tell when you venture into being nasty.