We all expected the death to be temporary and her to be a mutant because “synergy”.
The execution of the story, however, was so offensively bad. Feige isn’t responsible for THAT. There had to have been a thousand ways to write her being revealed as a mutant without her death, and even if they decided to kill her off it…