TSH82 OpAmp Voltage Specification
To use it as a comparator be aware that the maximum voltage difference between the two inputs is 2V and this is usually a problem if using it as a comparator.

All restrictions apply equally but some only apply to certain scenarios. If the common mode range is +/- 6V and you are running from a supply that is +/- 5V then that restriction is defeated by the input common mode range being between -Vs and +Vs-1.1V.

If the supply is +/-6.5 volts then the input common mode range does NOT extend to -Vs any more.