Big hydrocarbon plants are more effective than the little ones inside cars. There’s still other factors to consider like mining of minerals that contribute to make EVs not good, but they’re a little less bad for the environment than the combustion kind even if your energy comes from bad sources