If nothing else, Bart got a good story out of it. That’s important.
As has already been mentioned, the average bear is pretty smart, even if not as smart as Yogi. I once went backpacking in Glacier National Park. I think 1973. A long time ago, anyway. My friend Tom and I were being advised by a park staff member just before we headed out from the parking lot.
“Be on your guard. We have been telling hikers that there’s a grizzly hanging around. If you’re approached, one thing you can do is throw something on the ground to distract the bear, and then keep backing away slowly. Most of the people are day hikers, and they have been throwing their day packs, containing their lunches, on the ground. The bear has figured this out, and generally waits just off the trail. Day hikers come along. Bear jumps out. Day hikers throw their day packs on the ground and return to the parking lot. Bear eats another bologna and cheese sandwich, with gorp for dessert.”