Director Joe Russo recently opened up about the decision to kill off Tony Stark in Avengers: Endgame and not Captain America.

Russo discussed how he and his brother, Endgame co-director Anthony Russo, chose which of the two superheroes should die, during a panel at the Sands International Film Festival of St. Andrews. "If you think of Captain America as a character, you go 'Okay, Captain America dying is fairly obvious,' right? [Self-sacrifice] is something he would do based on the character," Russo said. "You know, this is a guy who offered to be a guinea pig in a science experiment in order to be able to go fight Nazis in the war. He's intrinsically a hero. Like, there's not a lot of complexity there. It might be emotionally impactful because you like him. You know, he's a very likable character, but it’s not necessarily the most compelling arc."

Related: Gwyneth Paltrow Shares a Heartwarming BTS Avengers: Endgame Photo of Tony and Pepper

"Tony Stark is a character who was supposed to die," Russo continued. He then touched on Stark's ego and his entire character arc from 2008's Iron Man to Endgame, which needed a major sacrifice to complete his journey. "So that seemed like the more compelling arc to us, that it would be Stark who died. So that it would be a richer, more complex arc, and that’s why we chose him," Russo said.

Avengers: Endgame marked the last appearance of actor Robert Downey Jr. as Tony Stark/Iron Man and Chris Evans as Steve Rogers/Captain America. While Stark sacrifices his life to save Earth from Thanos and his armies, Rogers survives the battle and travels back to the 1940s to reunite with Peggy Carter. He then enjoys a decades-long romance with Carter, which leaves him an elderly man in the present-day timeline. With both Stark and Rogers off the board, the Avengers franchise appears to be over -- something Marvel Studios President and Marvel Chief Creative Officer Kevin Feige seemed to confirm in February 2022.

Related: Superhero Movies’ Best Cheer Moment Wasn’t Even Nominated By The Oscars

Downey Jr. recently revealed that he pitched several alternative lines of dialogue for Tony Stark's last words in Endgame. Lines shared by the actor included "You are so f--ked" and "Oh, snap." In the end, though, the Russos settled on the line that appears in the finished film, "I am Iron Man," which is a callback to Stark's final line before the credits roll in the original Iron Man movie.

Avengers: Endgame is currently streaming on Disney+.

Keep reading: Avengers: Endgame Almost Involved an Agents of SHIELD Crossover

Source: The Sands International Film Festival of St. Andrews, via Deadline