There really is no answer to this question. There are probably a dozen high quality firearms that are nearly identical in form and function, will last forever and are priced about the same. They all blow holes in things. Under the stress of something like a home invasion you probably won't be noticing the subtle differences between a Walther or a Ruger trigger. Whatever fits your hand and "feels right" is the right answer. That's the one you'll most enjoy and will practice with most. A Beretta doesn't stop a burglar any better or worse than a Glock or CZ.
Do you already have a home security system? Another bit of advice I was given was to install small cameras around the hme that can be monitored from your bedroom (or anywhere from a smartphone or tablet). Then the "bump in the night" can be investigated without having to go downstairs with a gun.
Not changing the topic, but I've seen many discussions of "which gun" happen when larger questions about home security hadn't been asked yet. Not saying that YOU or anyone else here hasn't answered them, I'm just bringing it up.
Incidentally I was just at the range this week asking a similar question and trying five different striker guns. The Walther PPQ fit my hand best. I shot the best groups with the M&P 2.0. I didn't do badly with any of them. I did better beyond 40' with all of them than I did with the subcompact I already have. I didn't do as well with any as I can do with my Walther Q5 (including the normal PPQ...was it the extra 1" sight radius? The better sights? Or coincidence that particular day?) In the end I shot them all well enough (at a range, without stress, in bright lighting) to stop a burglar.
On the recommendation of the guy at the rental desk I tried the CZ P09. Man that's a HUGE gun. I hardly ever shoot DA guns. But I ran that one better than any striker and I think I heard angels sing. Im now looking into the P07 for a more compact option...
Anyways, any gun will do the job. Whatever "feels right" to you is the right answer.
PS. I am becoming more persuaded that a heavy first trigger pull is in fact a good thing in a HD gun. It's a far more likely scenario for moving towards potential danger with gun already drawn, and plenty of research indicates that even highly trained people get their fingers on the trigger under the stresses of these situations. A DA trigger gives tactile feedback if you begin to touch it. A PPQ trigger gives audible feedback!