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

Well, any way to create a condition that doesn’t evaluate all branches?

You mean the hardware works that way?