It is all about context.
Stewart Lee can set up a joke for an hour before delivering the punchline. Daily Mail can print it and it looks offensive, the entire audience realises what he's done though. It was a bit like when he wished Richard Hammond had died in his Top Gear accident by...