I read a comic book(s) some time after 2010 where there were these god like entities that would travel from planet to planet in some type of spiritual or energy form. They would download (?) into a person on that planet and takeover the body of that person transforming into whatever Justice League analog they were (Superman, Wonder Woman, Flash, etc) The two most powerful ones were the Superman and Flash analogs. They arrive on earth. They've possibly been here before, not sure.
The Flash analog doesn't finish downloading or something goes wrong during transfer, so his mind isn't controlled fully by the evil entity. Only his powers fully transfer. The evil JL start taking over the earth. The JL analogs are all afraid of the Superman analog. He threatens them on occasion. The powers that be mount a desperate offensive and manage to kill a number of the evil JL's. Superman analog exacts vengeance on the resistance and maybe the whole planet for daring to touch them.
At some point the Flash analog decides to oppose the evil Superman, who laments that he knew something was wrong with the Flash analog and that he should've killed him immediately. The Flash analog ends the fight by grabbing him and running around the world accelerating to light speed and body slams him into something killing them both. At the end we see that the spirit/energy form of one of the analogs (Superman?) has transferred to another planet where a humanoid species is worshipping him. He says or thinks something like the next time he comes to earth he'll extract his vengeance.
Sorry, I don't have any more details. That's all I recall about it. The story wasn't very good, but I wanted to see it again for some reason.