Lots of bears are killed with pistols, but the purpose of a defensive use is to stop the attack.
There are a ton of cases of 9mms stopping bear attacks, including grizzlies.