I genuinely really liked Avengers Endgame's handling of time travel, and I was expecting to be really underwhelmed by it.
My biggest issue with time travel stories is when it's used to "undo" or "erase" a timeline, no matter how many people die or how bad things get, the good guys just have to flip the switch, kill the right guy, change things, to make it so none of the bad stuff ever happened.
Endgame wasn't about undoing "the Snap" using time travel, it was about using time travel to get the Infinity gems in order to use the Gauntlet to bring the people back killed by "the snap". That may seem like semantics, but for me it made all the difference in making the story still have weight and giving actions consequences rather than the time travel being used to erase everything that happened.
Tony Stark still had his character development and his daughter still exists, Vision's death still happened and had emotional weight (unless WandaVision undoes it, haha), Black Widow's sacrifice still happens and effected the characters, the grief the world (or the whole universe) felt about losing their loved ones still happened, which makes their return all the more meaningful.
If they'd just used time travel to undo it, nobody would have realized it even happened which always feel cheap when movies or shows do it.