Did you not read my last paragraph?
My opinion is based solely on data like Nielsen ratings and box office results.
I don't know anyone who would be upset that a girl in a movie is Pakistani. And if I did meet such a person, I wouldn't want to hang around them very long.
But I do know a lot of people, myself included, who can spot forced box checking initiatives from 20 feet away. It's feels fake and cringey. Make the Ms. Marvel character fabulous in her own right, and have her ethnicity be a bullet point much further down on the list of character angles. Quite frankly, as a gay man I find female characters far more engaging than males, and even I had no interest in The Marvels. Meanwhile, my Blu-Ray collection is full of female movies like All About Eve, Auntie Mame, The Women, Valley of the Dolls, The Help, etc. But The Marvels? I had no interest, it looks cringey and dumb.
That was Marvel's mistake. They just made a movie that very few people want to see. And they spent $275 Million to make it.