Spray often will work better apparently by the stats, and it weighs less. However it's useless in a tent, and I can't fly with it at work. So pick your applications.
While hunting grizzly Dogleg and I were camped this Sept in an area we encountered seven grizzlies in a few days within a rifle shot of camp. One visited our camp one evening, zero issues or drama other than having to get out of the tent in the rain with rifle and flashlight in hand. If you needed to get rid of a grizzly from inside the confines of your tent I'd really think hard about letting the spray go. Fellow outfitter had to shoot a grizzly inside his wall tent a few years ago. Now, bit of a different application we're purposefully seeking out the grizzlies and camping amidst the salmon washed up into the bush.
I think for most users, spray likely is better, especially as if for you popcan you're not up on your bear anatomy and practice. But hey, who here doesn't enjoy carrying a firearm in the bush? I know I still enjoy that particular freedom. And if you're going to carry one, I'd suggest a rifle.