Someone from Reddit:
"Killing off beloved characters in the opening moments of the new instalment is such a lazy screenwriting trope that I’m tired of."
I wouldn't exactly go as far and say that "killing off beloved characters in the opening moments" should be considered as a "lazy screenwriting trope."
I've seen some films and shows that were able to establish how character deaths can help with the narrative of the plot going forward. For example (and maybe not from an opening moment perspective) Agent Phil Coulson's death during a confrontation against Loki in the Avengers film helped elevate the stakes moving forward and it gave the heroes a meaning and coming together with a goal to stop Loki and save New York.
At the same time, there are some films and shows that were not able to adapt this well. For example, Maria Hill's death in the Disney+ show series Secret Invasion did the opposite of what the Avengers film had accomplished and didn't help drive the narrative of the plot going forward.
Personally, I know that killing off beloved characters isn't something that everyone is going to agree on, but as long as a character's death is well written and have a meaningful purpose, it can contribute to raising the stakes for both plot and character that can tie up the loose ends of the narrative.