Medicaid is a deeply flawed program.