While you can debate the ballistics and functionality of anything, no reason my pump action Remington 20 gauge can’t do the job at close range inside, or outside the door or window. Most encounters aren’t going to be a fire fight. Depending on circumstances, hearing the pump cycle may send them running.
Nothing brings order to a chaotic situation faster than the sound of a 12 gauge racking.