Override equality to not use builtin cmp