Better enum comparison