Batman in the Dark Knight trilogy is a huge example.
But how many superhero films have done what Marvel Studios is doing? It's never happened before so I don't think it's fair to compare the two. I can't think of many if any major superheroes who have died at the end of a multi-film run. Can you?