No, it's stupid to play the "OH NO THEY'RE DEAD" card on characters who everyone knows without a shadow of a doubt will be coming back to life.
Nobodies like Scarlet Witch or Vision? Sure. People who clearly want to move on and do other things like Loki? Why not?
You don't kill off Black Panther and freaking Spider-Man and expect people to think they're gonna stay dead. "Spider-Man comes back to life" isn't a spoiler, y'know? The mechanics on how it happens, sure, but not the resurrection itself.
It's mild shocker for the audience.
But it's clearly to set up things for upcoming films.
For you to say it's stupid without seeing the payoff or result might be kind of stupid in a way, no?
Clearly we know they weren't going to kill them forever, but this has been done many times before in other stories, not just comic books.
The interest lies in what is gonna happen to these heroes now, and how are they going to bring these dead heroes back.