I think the easiest way to build this would be to simply combine the comparator with an actual set/reset latch, i.e., CD4043B or CD4044B, or made from two NAND or NOR gates (SN74LVC2G00/SN74LVC2G02).
As I said, the HCC4043 is a clone of the CD4043. If you compare its parameters with those in the CD4043B datasheet, you will see that they are identical.
Select this link to see answers to common questions, detailed use case implementations, and part recommendations for logic and voltage translation devices. .
Top Logic and Voltage…