I think the term “mary sue” is best used exclusively as a self-applied joke.

Holding characters (male or female) to some weird and rigid standard is not useful for any kind of real storytelling, and only serves to make people feel embarrassed about creating characters that have interesting or exciting backstories, appearances, or connections to other characters.

Batman is a huge mary sue.