One of the prime reason handguns seem to be effective is one can have them on your person all the time.
Whereas long guns tend to get set down or left behind.
I used to shore-fish rivers on the Kenai Peninsula in Alaska. That is where I ALWAYS carried a rifle. Those coastal Brown Bears are BIG critters!