More Data or Better Data? A Critical Analysis of Data Selection and Synthesis for Mathematical Reasoning