oid: Helper for old-school hashcmp