A great combination
of putting your foot in your mouth
and talking out your ass
Done with skill this two-for-one move can eliminate any doubt that you are a social pariah of the worst kind and should never again be invited to any funeral except your own.
Be aware though that it takes a bit of getting right. It's no good just saying something dumb. It's not much better just saying something wholly in-appropriate. You have to reach out there and get dumb and in-appropriate in the same sentence.
A good example is "She's got a not bad pair of tits but I wouldn't touch her with yours, everyone in here has had her" out loud in a pub to the guy who just got divorced last week from the girl you are talking about.