pub fn duplicates(matches: &[Option<&Candidate>]) -> Vec<Option<usize>>
For each match, the earliest other match that is the same work (shares an identifier).