JMO, but for the most part dogs are not the problem. Dog owners are the problem. A dog is a dog. It is not some cutesy fur baby. At best as smart as it will ever be is dumber than a 2 year old human.
I will never forget the time a guy rolled into a site next to me & out came one of those dog corrals. Uh Oh... Next out of the moho came about 5 of those yappy ankle biters. I'm thinking this is not good. He puts a shield around the outside of the corral. Now the ankle biters can't see out to bark at anything. They go out to dinner leaving the ankle biters in the moho. Not a sound from the little dears. They have pulled all of the curtains so the dogs can't see outside & they have left the TV on loud enough so that they can't hear anything outside either. Didn't hear a peep out of those show mutts all night.
It doesn't take much to be smarter than the average dog.