A primary key works only when no two parent rows share the key value.
one id, one parent row
Check duplicates
The unique flag is yes, with 0 duplicate key values.
duplicates=0
Key examples are tiny finite table checks; SQL dialects, indexing, query planning, deferrable constraints, enforcement timing, performance, and product behavior are out of scope.
Empty duplicate table
The duplicate-parent-keys table says none, so every parent id names one row.
unique parent ids
Summary
The compiler recomputes uniqueness from the actual parent rows.