Horses have more in common with rhinos than dogs.
Horses and rhinos share a more recent common ancestor and belong to the same order, Perissodactyla (“odd-toed ungulates”). Both have an odd number of toes with one large middle toe bearing weight, eat herbivorous diets, and have similar digestive systems with simple stomachs and hindgut fermentation.
Dogs belong to the order Carnivora, are carnivores or omnivores, have four toes per foot, and a different stomach structure. Superficial similarities between dogs and horses are due to convergent evolution, not close ancestry.