These two things (investment in green energy and coal) can be true at the same time.
China dominates global clean energy investment, accounting for more than half of the $1.1 trillion invested worldwide between 2019 and 2025, while the United States contributed approximately $236 billion, representing less than a quarter of the total. - https://finance.yahoo.com/sectors/energy/articles/china-spen...
No idea why you got flagged here, you've pretty clearly said reasonable things.