Whether a case proceeds to trial is a case specific decision that is ultimately made by the person charged with the crime after receiving the advice of their criminal attorney.  Often, this is made based on any available defenses, the evidence against you, including any statements or DNA evidence, your prior criminal history, the potential plea bargain offer, and whether registration as a sex offender is required.