In some cases, the first element is selected from the records with the same text, although the values are different. See attached sample.
I, as a new user, are forbidden to upload files, so I post the example code here:
https://jsfiddle.net/Mike_Z/eyzsa39q/2/