Since I read your comment I've been trying to do the math on this. Obviously modern houses aren't going to use resistance heaters, they're going to use efficient heat pump/AC units. So let's assume (worst case) that the entire CA grid burns gas (i.e., no nuclear or renewables), and that only 40% of the energy from each unit of gas burned at a power plant actually reaches a home in the form of electricity. Let's also assume a fancy 90% efficient gas furnace vs. a standard 300% efficient heat pump.
So by my napkin math, for every unit of gas burned at the power plant the electric solution is getting us 40%*300%=120% of one unit worth of heat energy pumped into our home. Whereas for the same amount of gas (and assuming gas distribution consumes no energy, which is obviously silly), the gas furnace is getting us 90% of one unit of heat energy into our home. I'm probably not computing this correctly, but my naive understanding is that this means 33% more heat for a given fuel usage (and CO2 emissions production) when using a heat pump vs. burning fuel in the house.
But on top of that, CA's electric grid isn't burning just natural gas. It's burning a mix of different fuels, some of which are dirtier than natural gas, and some of which are low- or zero-CO2 emissions. This is before we consider the mandate to add solar to new houses. So presumably even today, using an electric-based system will give even better CO2 results than the mere 33% improvement in heat-per-unit-CO2 would seem to give us if we assume everything is powered by natural gas.
Maybe this is wrong, but I'm really struggling to see why we would pump gas into our house and burn it under these conditions.
You have forgotten about absorption heat pumps, which are powered by natural gas and are even more efficient than electric ones.
We heat and cook with gas. So solar goes to appliances, tech, and AC (few days in summer) and one Nissan leaf. It is still not enough for our family of 4 (maybe covers 70%).
Anecdotally, every person I know with solar does not pay an electric bill (I also live in the Bay Area). My neighbor has solar, and has four adults in the house. They also run a catering business so they have a commercial walk in freezer and refrigerator in addition to their normal appliances, and they don't pay an electric bill either.
And when I run the calculator for my own house, it looks like I won't pay a bill either, despite running the A/C all summer and the heat all winter. We've just been too lazy to get it done.
Maybe your system isn't working correctly?
Both CO2 and energy usage are global things, not local. There is no such thing as saying "my heat is sourced from solar power".
Getting rid of natural gas is environmentally foolish, at least until we reach the fairy tale world where nothing is burned for energy.
Today though? This idea of "no natural gas", harms the environment.
For cooking, induction stovetops are far superior to gas burners.
The only thing that may require resistive heating is the hot water heater, but that's a fairly small portion of overall energy usage.
If all or even most of that electricity were renewable or nuclear you'd have an advantage in terms of CO2 there, but it's not. Renewable can peak out at >50% of power during the day, but it's also important to note that heat and cooking needs usually peak at night. It's out of phase with renewable supply.
Politicians can set the what, but never ever let them specify how. They are not qualified. Set a CO2 target and let actual engineers figure it out.