> Wouldn't it make more sense to use static if (__traits(compiles, lhs is rhs)) then?

Probably. That didn't occur to me though (much as it probably should have). I'll fix it.