Endgame had a second script where thor was the one who snapped, not iron man. It ended things perfectly, as thor not only survived, but brought back asgard and everyone Thanos killed.
upvote so glitch productions does not make another episode of the digital circus; comment if you want glitch productions to make a season 2 of murder drones