One thing I hate about guys that complain about Mary sues is that they never complain about “Gary Stus.” For example, Light Yagami was kind of a Gary Stu. He had an IQ of 215–230, he was handsome, the most popular kid in his school, and his family was upper middle class. Jace Wayland from Shadowhunters is an arrogant, brooding bad boy who’s a master martial artist, who women fawn over, and is basically the fantasy of what men and women think a cool bad boy is. Tony Stark is a multi-billionaire with multiple armored, superpowered suits that basically make him Superman, and Superman himself is basically a god.
Are these characters bad? No. I love all of them, but let’s be real here… they could be considered male Mary Sues, and these guys never bring that up.
Now, not every character or show has to be relatable. Peter Parker works because he’s an everyman; however, the opposite can also be true, and people like fantasy escapism. That’s why soap operas about wealthy people or sitcoms about financially stable families are popular, because it’s a form of escapism this goes for Mary Sues and Gary Stus too.


Others have good answers, but I wanted to add something that’s overlapping with this topic, especially since you mentioned anime.
I’ve watched quite a bit of anime since college when my friends got me into it. Recently I’ve been showing some anime to my mom based on things I like and which I think she would like. She commented that she thinks anime seems to have a lot of women in it.
To some extent this is skewed by my selection of shows for her, but it got me thinking. At least from my own personal experience, there do seem to be a lot more women in anime than you see in western media. There are many shows with female protagonists or all female cast and even the ones with a male protagonist frequently feature a prominent supporting cast of women.
While they do tend to get over-sexualized, there are plenty of shows where that isn’t the case and even when they do get objectified, there are a lot of them in strong or at least traditionally non-feminine roles. This is a medium where magical girls, battle maids, lady knights, female professionals and leaders are fairly well worn tropes. There are also definitely a lot of them that could be described as Mary Sues because they are just super powerful/competent at whatever they do.
At least from what I have personally observed, I haven’t seen nearly as much misogynist complaining about the prominence of women in these roles. But maybe that’s just the discussion sites that I visit. I also haven’t really done any kind of rigorous counting of shows with predominantly female casts, but they do seem to make up A LOT of the shows I have watched and enjoyed. So maybe this observation is just the result of a bias in my own viewing habits.
idk. I’d be curious to see what others have observed and thought about this. Maybe I’m way off base.