The comedy is there to lighten the blow by being so over the top that you can't take the story too seriously while they drop the hammer down on basically every ridiculous delusion human society has in under 90 minutes.
They really clear the aisles in terms of over the top outright stereotypes and dick and fart and sex jokes, and then proceed to mercilessly slaughter every golden calf imaginable.
Its not a film that's going to work with everyone.
I would call the movie anything but dumb. Its very smart.
The marketing doesn't touch on any of the real meat of the story here, so it looks like its just a big dick and fart joke movie, which it is.
The core of the storyline is a clear retelling of Plato's Allegory of the Cave.
Its no masterpiece but its not just dumb jokes, though there's plenty of those there, no doubt.