Good point. Could well be. Makes plenty of sense in a tactical sort of way.
However from my own perspective I recognize that humor itself can also potentially be precarious if and when misunderstood. But then in my own case I cannot predictably process things like sarcasm either.
Never said it was a good defense mechanism
And most definitely doesn't always work!
But weeds out the easily offended!