Replicated profiles on remote instances have different local IDs but share the same homeUserId as the native profile. Use homeUserId ?? id as the dedup key so the same person only appears once. Home instance is queried first, so the native profile (with clean username) wins.