Where are you hunting?
If it's just black bears any good modern 9mm is your best bet. I have a very strong preference for Glocks or other reliable striker fired pistol with NO EXTERNAL SAFETY. Supposedly 16% of guns "jam" during bear encounters. More like 16% of people are incompetent and couldn't get the safety off when their hands started shaking. Check out GarandThumb on YouTube titled "Which pistol should I get?" Dude's a long time SF guy and a great teacher, he'll fill you in better than I can in a short post.
9mm is cheaper, holds more rounds, and works as well as anything against people with good ammo. Only difference for bears would be I would go from JHP to some sort of hard cast for increased penetration. Basically you'd be good with just an ammo swap.
If it's Grizzly country I would suggest saving up and getting 2 guns as the requirements are very different. Personally if I could carry (Canadian) I'd have a Glock in 10mm for the balance between penetration, volume of fire, ease of use, and magazine capacity. All handguns suck at "stopping power" compared to rifles regardless of caliber (cue the triggered 1911 muh .45 2 World War fanboys here).
If you're dead set on one pistol to do both it might be the one time I'd recommend .40 S&W. It definitely wouldn't be my first choice with the Grizzlies here but you also aren't throwing spitballs either.
Living in NJ it’s illegal to carry. I have so far hunted in Colorado and depending on what happens with this virus will be back again in September. I hope to also get to Montana.
In NJ we can’t have a magazine greater than 10 rounds without committing a felony. Thank you Governor Murphy
Sent from my iPhone using Tapatalk