Based off of the opinions of several people who guide hunting and fishing trips in Alaska, they actually recommend bear spray over a firearm. Not because of anything to do with not killing the bear but because they say it actually works very well for stopping an aggressive bear.

If I ever find myself in bear country I'll take the spray and use it before I'd try to stop one with a firearm.