I have had no personal experience with pepper spray. From what I understand it provides iffy protection at best. First, if you are going to carry it, carry one that is rated for bear protection, not the personal mace type of product. It is effective for about 10 feet, maybe. It depends on the wind, and how accurate you are. If there is a wind blowing toward you, you might be more affected than the animal. If it is a strong cross wind, the effectiveness will be greatly reduced.
I have had experience with dogs, however. Worse than someones unruly pet are feral dog packs. They are not afraid of humans, and will come looking for food. Years ago, we came upon a mother and her two daughters being attacked by about eight dogs. We were hunting in a National Forest. The husband and older son were also hunting, and this was their base camp in a National Forest campground. We were lucky to have killed four of them before the others disappeared into the forest. I would not want to have been depending on pepper spray. Guns they understood.
Trailblazer75