Handguns over and over have proven to be effective in defending oneself.
I get the notion that a .45 is adequate IF the shots can be well placed. Disabling a bear’s hindquarters would probably necessitate a good spine shot, but in a close situation, that would be hard to accurately place. A big Magnum gun should give better odds.