Extracting oil doesn't leave the total devastation behind it as extracting cobalt does [1]. A several orders of magnitude increase in that sort of abomination that I linked to doesn't have anything to do with "saving the planet", it's all politics and money. There's also the whole "child labor" thing [2] but let's assume that countries like Congo will sort it out sometimes in the next 10-20 years, they most probably won't, but there's always hope.
[1] https://www.aljazeera.com/wp-content/uploads/2022/06/2013-02...
[2] https://www.theguardian.com/global-development/2019/dec/16/a...