The original script for Avengers: Infinity War could have completely ruined Thor's story for Avengers: Endgame, as it omitted one key scene. Infinity War was the first part of the conclusion of the MCU's Infinity saga, and the heroes were facing very high stakes. As the original six Avengers had been around for nearly ten years at this point, both Infinity War and Endgame were key to wrapping up some of their stories, or at least giving them some huge character-defining arcs. The latter was the case with Thor, but his story wasn't the same in the original draft.
Infinity War began by killing both Thor's best friend Heimdall (Idris Elba) and his brother Loki (Tom Hiddleston), which set the thunder god up for an emotional ride throughout the two films. He was dead set on vengeance against Thanos, in an unhealthy and unhinged way, almost regressing to the hubris he faced in his very first movie. This contributed to his Endgame narrative, but there was one defining scene in Infinity War that was almost lost, and without it, it could have killed Thor's overarching story.
Related: Thanos' Infinity War Plan Ruined The MCU's Perfect Setup
The original script for Infinity War didn't include the scene with Eitri on Nivadellir, which contributed a lot to Thor's Endgame story, as well as to Infinity War in general. Instead, the writers had a scene where Rocket and Thor team up against a huge serpent. This would have likely been the Midgard serpent Jörmungandr from Norse mythology, who is said to unleash Ragnarok when it releases its tail. The writers realized this scene came across as too adventure-like, without any real heart or serving any character purpose, and thus they replaced it with the scene on Nivadellir, which worked
Read more on screenrant.com