""We should not be using algorithms to determine sentences for criminals, the judiciary is there for that to determine the facts of the case and the intent of the criminal. "
The politicians in England have imposed rules for determining minimum sentences on conviction. If someone pleads guilty immediately there is a fixed discount on the sentence. If they insist on a jury trial and are found guilty - then there is no discount. If an innocent person changes their plea to guilty because of the fear of a subjective jury finding them guilty - then apparently the judge is not allowed to impose a lesser sentence than the minimum that the rules prescribe.
Minimum sentences rules were introduced because tabloid-fearing politicians didn't want judges exercising any intelligent discretion based on the evidence presented.