Ballistically, pistols are terrible replacements for a rifle.
An AR holds more ammo, is more lethal, is more accurate, is more adaptable, can be used as a club if all else fails, etc.
BTW, navigating through your house is a terrible idea, unless you have no other option.
Take a carbine...