macro debug_assert_ne($lhs, $rhs) { ... }

Panics if lhs and rhs are equal when compiled in debug mode. Otherwise, does nothing.