Analog to digital converter IC
You probably can't buy an off-the-shelf 4-bit ADC. But you can buy an 8-bit parallel-out ADC and just ignore the 4 lsb's of the output.

That will almost certainly be cheaper (in money, board area, and power) than building your own 4-bit ADC from comparators.