I had rabbits and hamsters when I was a young kid but it was not as nice as having a dog. Rabbits die very quickly because of overfeeding. They just don't know how to stop eating. They will finish whatever food you put in, no matter how full they already are. As with hamsters, they will just keep on biting you. It's very difficult to train them. They are really just like rats who don't seem to be able to interact with people. They also sometimes eat their own child. It was also very messy to maintain them, as they would literally make a mess of their cage. I've also experienced losing hamsters because they kept on biting on their cage just to be able to escape.
Dogs for me are still the best, and I only had it in recent years.