Compare two voltages and output the lower of the two
I think you can just use standard "precision rectifier" circuits.  You need a dual opamp and diodes.  To get the output down to zero volts, a negative supply is required.