Optimizing the shader: when to replace If statements by a Lerp?

Hmmm, I was under the impression that an IF node in materials is not actually a branching if statement and instead uses a trick similar to these on here?

If not, these are some good methods for optimising.