Grizzly bears, whole other class of animal. If you're going to hang out with grizzly bears, it's a good idea to have, at the least, adequately rated 'bear spray' and the knowledge of how to use it:
https://www.mtpr.org/montana-news/2019-08-27/are-you-sure-yo...
But in terms of equipment and training, a gun is worth a tremendous amount of peace of mind. Notably, because of polar bears, it is forbidden to leave town in Svalbard without a gun.
Of course, in remote enough situations where you might come across a grizzly, I would have a gun on my person in any case.
I do have the big spray canister with holster, and that setup seems finicky. Though I haven't done live practice with it.
I will practice that.
A black bear only attacks a person when it's starving and desperate.