For multiple duplicate contacts which one is updated on a upsert using the Rest API?

When using the REST API function(Create or Update a Contact) and there are multiple duplicates, Which contact is updated❓ Is it always the contact with lowest Infusionsoft Id❓

TIA

It will update the original, and return the original’s object (along with it’s Id) in the response.