That's what sold. And that's how the characters were written and developed. You'd have a point if say, a female character or a person of color was changed into a white male. That would be racism/sexism, as it is when it's done the other way. If you want a character that's of a certain race/gender, create one.
And if you want true equality, you don't make a big deal out of it. You don't see Steve Rogers puffing out his chest because he's a white male. You don't see a group of male characters highlighted specifically because of their gender. It would be stupid, just like it's stupid the other way.
With the exception of that one moment, Endgame did everything perfect when it came to gender. It didn't matter that these heroes were male or female. They were just heroes. That's how it should be.
It is absolutely amazing how racist this post is. Imagine substituting another race for "white" and seeing the reaction. The open hate for people of a race or gender, even white males, should not be tolerated.