Wa`alaykum As-Salamu wa Rahmatullahi wa Barakatuh.
In the Name of Allah, Most Gracious, Most Merciful.
All praise and thanks are due to Allah, and peace and blessings be upon His Messenger.
Thanks for this serious question, which reflects your concern about Islam. We really commend your efforts in pursuit of truth. This is what is required of all people, to seek truth and not to give in to anything that may cloud their minds with fake ideas about Islam.
As for your question, it’s known that a dog can be owned for some lawful purposes. We are, however, not allowed to keep a dog as a “pet”, since it is not a very clean animal. You can read the following Fatwa to knowtheShari`ah-based rulings on keeping dogs:
As for the findings of scientific research relative to keeping dogs, the prominent Muslim scholar, Sheik Yusuf Al-Qaradawi, states in his well-known book, The Lawful and the Prohibited in Islam: