AI’s Dual Role in Sustainability