From the Bible of energy, the World Energy Statistical Report, published annually for 72 years by BP —
Coal is denominated in Exojoules (10^18th joules)
Total coal consumption globally 2022 — 161 Ej, up 0.6% from 2021 and rising relentlessly for over 20 yrs.
The countries lowering their consumption (the US and others) do so via transition of power plants to natural gas. Not renewables which are largely insignificant in comparison.
China coal consumption 88 Ej. India 20 Ej. 67% of the global total.
India’s coal consumption 2022 was +4% over 2021. (note Covid impact on that is insignificant because their 2022 consumption of 20 Ej was above 2019’s consumption.
China and India both have coal. You use what you have. It is also how North Korea funds life. They have coal and sell it to China.