ENH: Added check_X_y to prevent repeated checking in pairwise_distances_argmin_min