The amplitudes of two ~ 1 volt, 1 Hz AC signals need to be divided. Any DC offset or low frequency noise can be subtracted after half wave rectification / comparator or integration.
It can be all analog, at least up until the output, if that's cheapest.
Bret Cahill