I never woulda thunk that California would have Castle Doctrine. Thanks for posting that. From reading a bit more, there are some important gotchas.
You may not get convicted of a crime for shooting an intruder, but you may very well be on the hook for civil damages to the shooting victim or their estate. Self defense liability insurance is a thing, and it is not cheap.
And you still have to really be in real fear of serious bodily harm. The Castle Doctrine grants a presumption, so you don’t have to prove your state of mind, but you can’t invoke it in good faith if you are not in fear of serious bodily harm.
So basically jumping out of a second story window onto a car is going to be a lot cheaper and less hassle than shooting this gentleman and defending both civil and criminal cases. Not to mention the subtle joy of saving a human life.