I too would stay clear of dogs with bad habits. Even though there are many great dogs with bad habits there are also many great dogs without the bad habits. I see no correlation between bad habits and great performance or intelligence.

I see no intelligence in a dog solely basing on s/he fighting his/her chain 24/7 for life. An intelligent dog would probably fight his/her chain for the first few hours when first put on a chain but would quickly realize that they can't escape and calm down.

I see no intelligence in a dog solely basing on them pissing in their own water or eating their own poop. An intelligent dog imo would not drink their own piss and avoid stepping on their own shit.