Exit early when phone_lookup returned duplicated results for Preferred SIM

Previously all results are validated then checked if there are duplicate. In this CL once duplicates are found it will exit early.

Bug: 72873001
Test: Existing unit tests. No behavior changes except query counts and latency which we don't test.
PiperOrigin-RevId: 184355913
Change-Id: I5ef89c25b100752d939daba69fcfeca3c9d32521
1 file changed