Those are two different objects with different meanings, histories, purposes and whatnot, which just happen to have the same basic shape, because the latter was inspired by the former.
BTW you’re wrong, for example F-22 prototypes still have designation YF-22 even after the Raptor had entered serial production.