-
Like oil and gas vs solar and wind
Yes, exactly like that. Now that solar and wind have had time to scale up and mature, over a much shorter period than the same took for hydrocarbon extraction, they are cheaper. e.g. onshore wind is as low as 3 cents per kWh at some installations, natural gas is about 9c/kWh with an optimum conversion efficiency to electricity of about 60% in a combined cycle gas turbine generator, so 15c/kWh for electricity from gas. Grid scale solar is also from 3c/kWh.
You don't really need to, because the market has already done it for you. Price is an excellent first order proxy for aggregate resource depletion, so the cheapest is usually the greenest. If you want to get into the weeds, you should probably adjust for market distorting taxes, subsidies and regulations, but ain't nobody got time for that.