The criminal justice system was designed for rational people who respond to incentives. It’s a poor fit for people whose mental illness is so severe they are incapable of doing so.
Defendants hold the right to trial, and there are circumstances when waiving that right and accepting a plea bargain are in a defendant’s best interest. However, that is a weighty decision and should be made with complete information.