Changes to prune_duplicates

Instead of keeping all copies that match highest score, keep only one
that matches (arbitrarily chosen)