You don't have to permanently kill everyone, just put them into the Edo Tensei and immediately resurrect them. It's not "death" it's more like a surgical procedure you go under for.
The Infinite Tsukiyomi would end the human race, not create a utopia, since everyone under the genjutsu is going to die of starvation pretty quickly.