Start with a yubikey which already has OpenPGP keys on it. Either RSA or Brainpool.
Then try with keytocard to overwrite with the other type of key.
This results in
gpg: KEYTOCARD failed: Invalid value
Overwriting with the same key type is accepted.