Some years ago, Switzerland completely stopped using landfills. All garbage is incinerated. The resulting slag is then processed to reclaim nearly all metals as well as some other important elements.
Of course, the burning creates CO2. However, you don't have to mine and refine metal ores, and the incinerators also generate electricity and district heating. So the ecological balance is actually pretty good.
As a final bonus, you don't have literal square miles of landfills that occupy land and eventually will leak lovely chemicals into groundwater. The slag is far less problematic, and there is a lot less of it to deal with.
Of course, the burning creates CO2. However, you don't have to mine and refine metal ores, and the incinerators also generate electricity and district heating. So the ecological balance is actually pretty good.
As a final bonus, you don't have literal square miles of landfills that occupy land and eventually will leak lovely chemicals into groundwater. The slag is far less problematic, and there is a lot less of it to deal with.