The second solution is essentially just enforcing that the lookup table question has a unique answer in each repeat (IE: there are no duplicates)
There's a good recent discussion of how to do that in another forum post which could be helpful: https://forum.dimagi.com/t/avoid-duplicates-in-repeat-group/7697/7
-Clayton