The epidemic of 'unnecessary sex scenes' in movies and TV shows that everyone likes to complain about is an entirely hallucinated, non-existent problem.
Every now and then, I come across posts praising a popular piece of media for succeeding in spite of its lack of unnecessary sex scenes. The Lord of the Rings is a very prominent example of a property that often receives this praise, but it happens all the time. In the lead-up to Stranger Things season 5, I saw people echoing this same sentiment. (It technically does have a sex scene but it's entirely hinted at, and you're only shown snippets)
The underlying foundation for this sentiment appears to be that media which decide not to include any sex whatsoever are somehow going against the grain by doing so, because it just feels like you can't tune in to a single piece of mass consumption media nowadays without having to sit through a gratuitous amount of sex scenes. This is not always subtext, though; I have heard many people make this exact point explicitly, and everyone just nods along.
Even putting aside how not all sex scenes are by nature unnecessary, the assertion that sex scenes are somehow ubiquitous in popular media these days has the biggest load of bullshit ever.
Over here in reality, sex is actively disappearing from our screens. Studios are increasingly prudish and scared to offend anyone, but mostly the US American right. Family-friendly content sells. Properties which do include sex are either romance stories (and even then, to a deteriorating degree), adaptations of original works which include sex (like Game of Thrones, Call Me By Your Name and 50 Shades of Grey — but even then, the sex scenes are often omitted), some teen dramas, the occasional biopic, or legacy series that are still alive and kicking and which made sex a part of their brand when it was more normalised decades ago (like... James Bond? Sort of?). That's it. I would be willing to bet over 90% of the highest grossing movies of the last 20 years do not include any sex scenes whatsoever, and at least 70% of the most watched TV shows, which is me being conservative.
In the entire Marvel Cinematic Universe — as far as I know — there is exactly one (1) sex scene, and it's extremely tame, non-graphic and very short. I rest my case.
You don't have to like sex scenes, to each their own, but can we please just stop pretending like the movie industry is beating us over the head with pornography? The golden age of erotic storytelling is decades behind us. When a sexless movie succeeds, that is not an exception. It's what almost everyone else is also doing.