You may have a look at previous discussions, please, esp. Avoiding duplicate selection in repeat group - #22 by LN (and more from the search function of this forum https://forum.getodk.org/search?context=topic&context_id=45192&q=avoid%20duplicates%20in%20select%20repeat%20group&skip_context=true).