We have two methods available for string comparison, those are overloads of ππππππ.π²ππππππ method which takes three parameters two strings and comparison case. As per the docs Microsoft suggests to use πππππππ²πππππππππ.πΎππππππ and πππππππ²πππππππππ.πΎπππππππΈππππππ²πππ for string comparison.
πππππππ²πππππππππ.πΎππππππ : Use it when you need better performance comparison and you care about case sensitivity (Recommended).
πππππππ²πππππππππ.πΎπππππππΈππππππ²πππ : Use it when case sensitivity is not needed.