If serious though I would think you would want somthing stabby .
I imagine you won't have time or room to swing to well (imagine how fast a house cat is then grow it by a hundred ).
I live in alaska bears are seldom seen but are around (mostly blacks, grizzly are a little up the road

).
I use a hill people gear chest rig to hold my 44.
But under the left hand side strap I have an esee 4 (it never leaves the set up)
With the sharpend top clip .
Basically in my FANTASY land I imagine getting mauled you won't be able to.move like you want to . My best plan is to get on my back gaurd with legs up trying to kick while I pull my pistol and try to shoot him in the neck.
Bears have slow heart rates so trying to shoot one to bleed out is not a good plan .
Best is to attack their sensitive nose . But I do keep that blade there
In case I gota shank a be yach

.
Remember most of its is fantasy .
But I do believe like others said about the will to survive .
Then again after watching the revinant
