Hi @srini,
I don't believe so.
The code counts the number of times the values match, so I don't think primary keys would be relevant.
That said, it's hard to be confident without a full reprex.