A wise old retired Denali Park ranger once told me that the way you tell if the poop you just stepped in is bear poop is that bear poop has little bells in it and smells like pepper.
In my experience with spending time in bear country is that the most important thing to know is being aware of your surroundings. Learn something about bear behavior especially in the area you plan to be in as their behavior does vary greatly depending on where they are, time of year, whether the bears are used to being around humans, and especially if they are mama bears.
Pepper spray can be a good deterrent for a bear that wants to be deterred. If a bear is determined to get you you may have wasted the few seconds you have to defend yourself with a firearm by using pepper spray.
As others have said what ever you choose to use is worthless if you don't have when needed or have not practiced with it.
There is a very good course on bear awareness taught by LTR.
LTR Courses
http://www.survivaltraining.com/file...3_overview.pdf
When our boys were younger and less mobile we spent a lot of time in the woods in bear country. Now that they are older and can run as fast or faster than me...not so much...