For indoor home defense? Neither. Rifle rounds have too much muzzle blast to be used indoors without ear protection.
Get yourself a Beretta CX4 Storm or something similar in your favorite pistol caliber.
No, it’s not as devastating as a rifle, but it will definitely get the job done.
It also won’t leave you half-deaf with terrible ringing in your ears for the rest of your life.
It’s all about using the right tool for the right job.
If you’re worried about multiple guys in body armor breaking into your home, thinking you need a rifle... I would say the problem isn’t the weapon, it’s your life choices and maybe you ought to re-think those.