I have a standard input field and a text mesh pro input field, and its been having some weird behaviour so I tested the two fields for equality using the following code. In all cases, even when the exact same text is typed into both fields it tests are not equal.
if(backupNameField.text == gameNameField.text)
Debug.Log("Different! " + backupNameField.text + " " + gameNameField.text);