I am in favor of the opinion that a dog can make better friend than any human.
Most important is that your dog will never leave you. It accompanies you, whatever you do. It follows you, wherever you go and watches your life carefully. It stands by you when you are sad and shares your happiness.
Second, a dog cannot discuss and argue with a man. As it is not able to speak, it will never tell you, that it doesn't like your behavior. There are many people, who don't like any critique and who believe, they are always right. A dog can support such thinking.
Last but not least, you can spend time with your dog, whenever you want. Your friends sometimes have other things to do, but a dog doesn't. You can take it for a walk whenever you want and spend your free time with it.
Summing up, I think that a dog is a better friend than a human. If a person feels lonely, he should buy a dog. It can make everyone happy.