I guess it's more fair to say that WotC doesn't prescribe any particular class or party composition. The only thing I've found in the PHB is a line about how the party has to work together and that other characters can cover for your weaknesses, but I haven't found a line saying "thou must bring a Bard, Cleric, or Druid".
While there's a lot of "play the class you want" sentiment found online, I don't see anything official, so maybe that's just something the fandom made up? My brain keeps telling me I have heard this from a WotC source, but as I get older, my memory is less reliable and prone to Mandela effects.
I guess I'll have to change my party line from "WotC says you can play what you want" to "WotC never says you have to play anything in particular".