That's part of what made Infinity War so good. Even knowing there was another one in the can coming the next year, the bad guy won! I remember watching it and slowly realizing they're out of time to beat Thanos without the ending being absurdly abrupt.