Is this a If statement bug?

For me operator “==” with fnames working as intended. Also if you use compare() docs says: “FName::Compare can also be used to compare two FNames, and it will return less than 0 if this less than Other, 0 if this equal to Other, and greater than 0 if this greater than Other.”