Offensiveness is an easy way to ingratiate yourself with the audience and establish a common understanding, but only when it is accepted by the audience, typically by being familiar or perceived as true. These qualities are useful for many ambitions, humour is one, conquering large parts of Europe and Asia is another, but it is only a means to an end. The humorous quality comes from either subverting the expectations from the common understanding, or conveying a narrative based upon the common understanding that the audience follows in a manner which evokes feelings of humour. The offensiveness itself is not humorous and nor is it necessary, it is just a shortcut that many lazy comedians employ. A very effective shortcut, to be fair, but entirely distinct from the humour itself.
And then there is some responses to discomfort being perceived as humour. Which, once again effective, seems to be something else entirely and to ultimately produce a much less valuable effect.
Although mocking formulaic media is largely fair game, I suggest making a bit more of a point to articulate that it was media that you were mocking in future because context can be very easy to lose in this medium.