Closest points with same distance issue

Upload a specific example, may there‘s another solution.