Why IF material node gets converted to A = B ? C : D

If you really need it, you can use a Custom Expression node and use a [branch] statement before your conditional.

Don’t assume that it will be faster, though, because it’s not always the case.