Bear spray is actually more effective than bullets is protecting yourself against bears. Bullets are not likely to kill the animal quickly enough to prevent escalation of the attach and will lead to serious injury.
Something like 90% of the time, bear spray will deter the attack with no serious consequences. The most important thing is to keep a clean camp (a really clean camp) and be aware.
_________________________
Geezer in Chief