Upsert response value clarification

The documentation on upsert shows the response being in the format { upsertedCount: number }. Is this guaranteed to be the same as the number of vectors upserted?

The case that I could imagine there being a mismatch is if the request contained two vectors with the same id, however I tried this and it still returns 2.