fix logic for comparing objects in DOH, fixes #15839 !strict