You might be thinking of the end of this Simpsons episode:
https://en.wikipedia.org/wiki/The_Father,_the_Son,_and_the_Holy_Guest_Star
which was a holy war which included giant robots (as well as humans):
https://frinkiac.com/meme/S16E21/1265349.jpg?b64lines=IENvdy1hLWJ1bi1nYSE=