Sure, within such a context, but what we need is a reform of the legal system. It's outrageous that in England and Wales (no magistrates in Scotland, I don't know about Northern Ireland, sorry) we have sentencing done by people who are not lawyers and do not know the law. Yes, they have a little training (pitifully little); yes, they have a legal advisor to whom they do not have to listen; it's not enough.
The Secret Barrister's first book devotes a chapter to the grim tale of the magistrates' court (2018). You have a 23 % greater chance of conviction in the magistrates than in the crown court; if you're in for an offence that could go to either, better to elect the crown court even though this opens you up to a risk of a longer sentence. It gives some 'charming' summing up stories: aside from the obvious near conviction of a non-existant crime, the apparently ubiquitous phrase "we preferred the evidence of the prosecution witness" says it all. Beyond reasonable doubt? Where's that?