It could be fixed with individualized attestation credentials. People should be able to upload their own device's attestation credentials to a service to whitelist their own device (for themself only).
But the APIs are not designed around this use case. So no service does this, to my knowledge.
The APIs could do this, if someone chose to use them this way (it’s also notionally just a passkey, so, why?), but this also doesn’t address the threat model: a customer sold a counterfeit device with a pre installed trojan will still be compromised this way.
If the device comes from the factory with malware, then it could let you do all that and still send your bank account passwords to Eve on the side.