When every single village and town has reliable and cheap electricity supply and their productivity has been raised to the point where they can afford cheaper replacements, then coal still has a place.
All those TV adverts for villages with no clean water - what they first need is a power station to power pumps and filtration. When you see kids that have no education, what they first need is electricity so their parents don't have to make the kids work all day, and lighting so they can read at night.
Those places, if they don't have hydro available, need coal fired electricity capable of being delivered at 10c/kWh. They don't need a tesla battery pack and solar panels any more than they need a tesla model s.
I think most of them would trade a bit of coal pollution for the pollution from burning wood and dried out cowshit inside their homes. And it's downright wrong for people in rich countries to out their nose in the air and try and tell them they can't.