We might try to find a unifying principle here, something capable of uniting these two criteria into a single criterion of identity.
I think, is related to what Kripke and Putnam were up to in their theorizing about natural kinds.