There are many ways to skin a cat............
You could pass the two current thru a pair of identical resistors, and then compare the voltage difference across the resistorswith a simple voltage comparator.
Another way would be to use a hall sensor, those with a hole in the middle. Then pass one of the currents in one direction, the other in the opposite direction. The output will swing above or below the cell's quiescent point (usually Vdd/2) depending of which current is larger.