You kill everyone, but you create the machine god, and the machine god will be happier and more fulfilled than all humans combined. Maybe the machine god simulates a bajillion happy humans that make it all worth it.
EA seems to mostly be a way for rich people to justify what they want to do. Like, I can do these bad things today because its in service of this ultimate good future goal.