One advantage of many auto shotguns or pumps is their mag can be replenished from loose rounds in pockets or a bag. Shoot a couple, load a couple.
Keep doing it. There will always be enough in the mag for those times when you need to fire more than 2 or 3.
Same thing is true for many lever actions.
I guess if you need to shoot dozens of rounds before sticking a new mag in, then the ARs or AKs might be better.
Having use both professionally.
I would grab an AR over a shotgun for most serious work.
But a shotgun are very useful in some situations.
Or you can load the mag with buck and keep slugs in your pocket if you need a slug.