You're right. they’re not. But no form of electricity production at the scale we need it, and the even more massive scale in the future, is environmentally benign. The challenge is to find the best way to leave chemical combustion behind, and fast. Notice the new interest in the old devil, nuclear fission, among various green groups.
That's mostly interest among astroturfers, not actual green groups. There was a bit of interest among some genuine greens about a decade ago, but that evaporated as solar and wind continued to decline in cost and the nuclear renaissance flamed out.