In working democracies, unjust laws are changed. In places where rule of law has broken down, laws are selectively inforced.
But seriously, I would have thought charging with the most serious offense you can prove would be a vast improvement over the practice of plea bargaining, where people are bullied out of their right to a fair trial by the threat of prosecution with a more serious charge that they can’t really prove, but that still has a non-negligible chance of leading to a conviction, because courts have a non-negligible error rate.