Also, you have it backwards. CCP had the option to create an export-driven economy, as well as the option on how to power it. Nobody held a gun to their collective heads and said "You must produce cheap goods for western countries, and you must power your economy in the cheapest and most polluting way possible."
The Chinese government has a lot of agency, and a lot of culpability, in this.