Select points with highest Z value per (X, Y) coordinate

This might answer your question:

Rounding X and Y coordinates to one or two decimal places will ensure proper sets.

And read this:

3. Attach minimal versions of all the relevant files