Limitations of InvariantCulture in String Comparison
StringComparison.InvariantCulture and CultureInfo.InvariantCulture do not act the same way in all cases. While CultureInfo.InvariantCulture works for formatting and parsing data, it does not give the same results for every string comparison.