The issue here is that the human needs the same amount of energy no matter what he's tasked with. Ideally robots will mean humans will be spending their time on fewer menial tasks, but the environmental impact of a living human is the same no matter if they're stocking shelves or doing any other job.
Robots might be able to give some environmental improvements in the workplace though. The areas they inhabit don't need to be well lit or heated/cooled for human comfort, but that's only true for places and times where humans can be removed entirely. Even in a fully automated warehouse the moment a repair person comes in, or a janitor, or a exterminator, or any human employee you have to accommodate their safety and comfort.
I suspect the additional efficiency of machines will just make it faster and easier for people to consume irresponsibility produced and packaged goods
I often wonder about how to make these kinds of comparisons, but it always involves so many guesstimates that it quickly falls apart.
So I think it's better.
It also leads to a lot more centralization, but that's a different discussion, of course.