I didn't see it as good storytelling, I saw it as cheap jokes.
I understand the need to lighten the mood, but none of the "mood lightening" they attempted in Endgames seemed to work. And frankly, you could have let the movie be heavy. Half of the population dying sounds heavy, but we aren't really shown it beyond empty houses and a few minor scenes.
But, like I said, I don't want to drag this into a discussion of the plot and characters. I had my multi-hour rants about it years ago, no need to drag things out about it.