Let us for arguments sake consider your example of a farmer in remote part of Bangladesh who uses buffalos for power and dung cakes for fuel.
Likely the will replace the buffalos with a Chinese single engine diesel tractor. But I think his electricity needs are more likely to be filled from localized solar energy generation than from a centralized distribution network.
Who in his right mind will believe for farmers in a 3rd world
country a tiny fraction of the size of Canada with a population
more than 4 times greater, conversion to renewable is no less
economical than for the urban population whom the farmers have to
feed from a 'remote' region? It will cost me an arm and a leg to install
and maintain solar panels and batteries in my residence.
But let's say renewable energy is affordable to farmers in Bangladesh
the more important and urgent thing to do would be conversion of all
the scooters there along with India and Pakistan to electric vehicles. To
ensure their fleet of electric scooters are going to be powered by
green power source they will have to phase out all the coal -fired
power plants on a time horizon like 30 years and replace them with
nuclear and renewable power sources. I don't think many world leaders
other than Trudeau will be as willing to finance energy transition on
such massive scale.