The role of lattice QCD in flavor physics