The legal system assumes that a prosecutor will not win every case, but it also assumes, and gives a prosecutor ample discretion and tools, that cases will not be tried that do not have at least a good chance of success.