So, in the climax of Avengers: Endgame,
the Thanos from 2014 travels forward in time to 2023 and dies in the climactic battle.
This should, logically, prevent the events of Avengers: Infinity War from ever taking place, since he ceased to be present in the time line 4 years prior to this.
However, the movie seems to imply that the events of Infinity War still happened, creating a time travel paradox - a variant of the Grandfather Paradox.
Is there any official statement as to what occurred, or is this just a plot hole in the movie?