Neither as a primary home defense weapon as, unlike a handgun, it’s impossible to have a shotgun on my person or within reach 24/7 while at home.
I have my .38 Special revolver on me as I type this. I wouldn’t have a shotgun within reach right now and I can’t picture myself mowing the lawn or doing other chores carrying a shotgun.
A long gun may be a viable option as a backup. I’ve considered a shotgun for my wife because she doesn’t have the inclination to put in the time to become reasonably proficient in handling a handgun. And that shotgun would be a break action single shot because she doesn’t have the inclination to become proficient in the handling of a pump or semi-auto. The single shot is almost 100% reliable and and is the easiest to train with. I wouldn’t pick a single shot as a primary, or any long gun for that matter, but for my wife to use as backup for me, it would work.