There is a study of the Yellowstone bears, which will go for the easiest source of food even if it is garbage. I think Bears and people are opportunist at heart, it is a natural behavior. However there was a die-off of bears when the garbage heaps were removed....
https://www.yellowstonepark.com/things-to-do/yellowstone-bears-no-longer-get-garbage-treats