[identity_map] auto choose merge method in #merge_or_insert