Another advantage to a shotgun is you can get a variety of shells in 12 gauge. Everything from deer slugs, which as the name suggests can put down a deer, to rock salt, or handloading crayon wax with shot for a lightweight "Safety Slug" that breaks up on impact with a 5/8" wall board.
The thing is, whenever you get a new shotgun, choke, or try out a new load, what you do is take it out on the range, and Pattern it. For home defense, any given load, in any given shot cup breaks up anywhere from 5-to-15' from the muzzle, and you won't know what the Pattern is, unless you take it out on the range, and Pattern It.
That's the difference between owning a gun, and knowing how to shoot Your Gun: Time on the range. Anyone can look up good examples, and bad examples on the internet. There's about as many good as bad, but to apply it to your home, your self, and your gun, you have to take it out on the range, and practice with it.
It's not going to do a damned thing for you, if you don't do your part.