key is what tells one slot from another, so two elements sharing a name still occupy their own slots and neither replaces the other.