Comparing the environmental impact of gold and bitcoin is an open question. Gold mining pollutes the world in ways bitcoin never will. It creates ocean waste [1], long-lasting mercury pollution [2] and more.
As renewable become cheaper than fossil fuels, bitcoin will create additional demand for cheap renewable and accelerate the green transition. Because a mine could be moved essentially anywhere, it can be placed exactly where cheap renewable source of energy can be collected, thus maximizing the return on investment for renewable power plants, for example with geothermal in Iceland [3].
[1] https://www.earthworks.org/blog/drawing-the-battle-lines-ove...
[2] https://theconversation.com/gold-rush-mercury-legacy-small-s...
[3] https://www.wired.com/story/iceland-bitcoin-mining-gallery/