Think about it, they have more people than the US, Canada, the EU, UK, Russia and Australia combined. That's some major need for energy, which everyone else just blames on "China".
I think they're doing pretty well in comparison.
While I'm at it, I need to mention their one child policy basically stopped hundreds of millions people from ever existing. A whole lot of pollution that never happened. Something no other country has done, and I think China should have some recognition for that.
Wouldn't it be better to instead let the developing world leapfrog fossil fuel energy generation, and go straight to renewables (and possibly nuclear)? By e.g. donating technology, IP and expertise, and otherwise incentivize them to skip the dirty tech, at no loss in QoL improvements of their citizens?
Yes you can. The world's problems are not really personified entities, where hypocrisy is a valid concern. China is a problem.