From what I understand, large infrastructure investments (such as building out a green electric grid) are great for the economy.
Even if it's a net cost though... it's not like there isn't enough money to go around. If only there was a way to redistribute that wealth so that poor people didn't get even poorer.
I really truly don't think the only two options are "do nothing" or "do something but at such a great cost to people's quality of life that the cost outweighs the many millions or billions of lives saved".