Wow! That's a mindset beyond my ability to even imagine!
I'm probably midway between Morrus and Bullgrit.
I don't plan out every place I go into, but I do at times consider the places I am at and whether I am in the best defensible status.
Generally speaking, burglars want empty homes, not occupied ones. So generally speaking, nobody's getting a home invasion by burglars.
The guys who will hit my home, will do so because they think I have money, access or information. No doubt they followed me home from the bank or know what I do for a living and what I have access to.
As we've been preparing to adopt, all my toys are put away, so it'll be a lot harder to just grab a pointy thing...
Dogs are useful as a deterrent, but they can be thwarted by familiarity, food or fear. A home invader knows you have a dog. They're prepared to bash its head in, which will also intimidate you.
My alarm and camera system act as a better tier of deterrent. A bad guy will hit a house with no dog before he hits one with a dog. He'll go hit a house with a dog before he'll hit one with an alarm and camera system.
When the bad stuff goes down, it gets complicated. I'm an out of shape martial artist. I can fight to an extent. Certainly better than somebody untrained, and likely a lot more dangerous. It is easier for me to kill you than it is to try to disable you with a fancier, riskier move.
A good chunk of home invasions are ruses at the front door. Somebody knocks, you answer, they force their way in through you. In which case, I have proximity, which is useful for hand to hand. If they have a gun, that'll be tricky, depending on if they stick it through the door or shoot through the door. If they shoot through, I can fall back, hopefully getting missed, and maybe continue to jam up the door way. If I have my gun, I can shoot back from the prone position. If they try to shove their arm with the gun through the door, I can step offline from the barrel and use a number of wrist grabs/gun disarms on them.
A good chunk of it is winging it, based on where you are, what's between you and them, and what else is going on (who else is home, etc). If I forestall entry long enough, my wife can call the cops.