A unique index enforces that no two documents can have the same value for the indexed key(s). Without it, application-level checks can race and create duplicates under concurrency.
db.users.createIndex({ email: 1 }, { unique: true })