Both options have their strengths, but I lean toward a shotgun for sheer stopping power.
That said, a pistol is easier to store and maneuver. If you get a pistol, make sure to train regularly. Whatever you choose, just practice until it’s second nature!