ENG-5128: Handle intermediate tokens in ElasticHashinator.equals().