Producing energy, whether clean or dirty, requires investment. Whether developing countries go with clean or dirty depends on where the investments go.
Right now, because of redlining, it's three times more expensive to build wind or solar in some developing countries than in rich countries. But loans for oil and gas companies are cheap b/c they are not redlined. Guess who goes in first.