Even though Buran has shown that the logic doesn't make sense, you could try separating the function call and the logic and see what happens to the error.
iloc_data = df.iloc(B,2) if (iloc_data != "A") or (iloc_data != "14-C") or (iloc_data != "CAT") or (iloc_data != "Tony") or (iloc_data != "USE"):