Doubtful, the average 2022 release grossed more than any other year since 2010 (and we had two of the top 5 all-time grosses in the past two years). The box office is just smaller overall because fewer movies are released in theaters these days. Ticket prices being up 10-20% since 2019 helps too.
If anything movies like No Way Home and Mario were aided by the absence of other significant releases for many weeks around them.
I can't recall what movies were around the time of No Way Home, but No Way Home stood on it's own two feet and people went to see it for what it was not because there was a lack of other movies.
As for Mario not being up against significant releases?
There was Avatar 2, Creed 3, Dungeons and Dragons, John Wick 4. Considering what ticket prices cost in my country, all these take away from Mario if there was nothing else on. Mario has done well because it has a significant fan following in the world. If it had a different title it wouldn't even be on the radar.