switch (x == y) {
case 0:
stmt0;
break;
default:
stmt1;
break;
}

if (x == y) {
stmt0;
} else {
stmt1;
}