The smartest dog race, according to science