I guess I was lucky. No soi dogs where I was. Every house had at least one dog, sometimes many more. They all were housed. Any dog that stepped into another dog's perceived territory, without its human, was told in no uncertain terms to go away.
One of my sisters in law had a female, another had a male, between them and other males in the village, she ended up with 12 dogs, all of which the wife and I paid to have sterilsed. I'd gladly have paid to have all the dogs sterilised, if that's what the humans wanted. But I made sure all the dogs in the village knew me, made sure they knew the pecking order. I have to admit, it was fun getting to know the dogs, as well as their humans.
Would I eat dog? I don't know. I eat other meats...just never knowingly tried dog...