Catalyzes the NADPH-dependent reduction of glyoxylate and hydroxypyruvate into glycolate and glycerate, respectively. glycolate + NADP(+) = glyoxylate + H(+) + NADPH (R)-glycerate + NAD(+) = 3-hydroxypyruvate + H(+) + NADH (R)-glycerate + NADP(+) = 3-hydroxypyruvate + H(+) + NADPH Homodimer. Belongs to the D-isomer specific 2-hydroxyacid dehydrogenase family. GhrB subfamily.