Make partial matches only work with non-duplicates