not all amps are good for use as a comparator
https://www.analogictips.com/faq-use-op-amp-comparator/