Depends. Are you searching for the complicated thing by identity, or in a system that caches identities and/or interns objects of the type you’re handling? All
Of those can result in searches being word-based and thus vectorizable/cache-sympathetic more often.