Today, I saw the counter-argument that BW got worse treatment than Thor.
Way back in Ultron, they turned her into a romantic interest and had her say she was a monster while revealing she couldn't have children. Not a good time to combine two angsty things as it sent the wrong message about women, having children defining their worth, and the arc she was having where she accepted her past and red ledger in Civil War.
Now fast forward to EndGame, and she's in a who can kill themselves quicker race with Yeehaw Barton (you can search Twitter for that and find the source of this entire chain of thought) to jump off a cliff and die.
Basically, all that growth, and she's disposable because Barton, who 20 minutes earlier was killing people of color, has children.
Topping off that sad cake with a short bit of sad "where's Natasha" when they return, and that's it. Tony got a funeral. BW did not.
I couldn't tell you the Russo's intent (or Whedon's) and imagine they'd argue differently. But I can see how this interpretation also makes sense and wouldn't strike some people as a good ending or handling for BW.