You do understand that horses are very very valuable? And that probably back in the day when this saying originated, it was one of the most valuable things most people could own. When buying a horse, the teeth were checked to determine the age and health of the horse, because problems in teeth could cause it not to be able to eat. But you would be a kinda dick to start looking at the teeth if given such a generous present.
It is basically I gave you a car and you started to ask about the mileage, then decline because you’d have to take it serviced now and then (like every car ever made have to be), ie. you’d be foolish enough not to see the value in a gift.
If the horse if free, the dentist will always cost more, unless you can somehow get free services from a horse dentist, which is quite unlikely.