I prefer Infinity War, which I too thought was structured very well, had clear and visible stakes, and an excellent villain. And possibly the best Marvel action set pieces.
I guess I enjoyed Endgame, but it's a film of three parts that individually never quite succeed -- the first rather downbeat, reflexive hour is quite good and maintains the stakes from IW, but you always know it's a build up to something else...
Overall I enjoyed the movie, but IW was better.
Avengers: Endgame was an emotional farewell & fanservice to Marvel's long-time fans. At least it was the way I see it. I'll never understand contrived arguement on how EndGame Thanos was stronger...when he is essentially just same guy. Maybe cuz he had Infinity Blades (no spoilers, it was shown in trailers man). I viewed both IW & Endgame as 2 major story arcs within Avengers series. From Avengers 2012~Age of Ultron~IW~Endgame, its a huge Infinity Saga lol.