Techniques that facilitate two-phase liquid cooling electronics are provided. In one example, a system comprises a pump and a valve. The pump circulates a coolant refrigerant through a two-phase refrigerant system associated with an electronic component. The valve controls a flow path of the coolant refrigerant that flows through the two-phase refrigerant system. Furthermore, the valve modifies the flow path of the coolant refrigerant through the two-phase refrigerant system in response to a determination that an operation of the pump satisfies a defined criterion.