We could use some artificial intelligence to supplant illogical, irrational, inefficient systems in place in our society, most notably in our justice system & government. Business has been doing this for decades, very successfully.
Judges are a good example. Judges are supposed to be impartial & knowledgeable of the law. Yet, we all know of judges who are both biased & ignorant of the law. It is commonplace. Even the Supreme Court is OBVIOUSLY divided by partisan bias. As a human trait, impartiality is a rarity, & subject to circumstances & those involved.
Computer systems CAN be developed that are experts at the law, & are completely impartial, much as a computer chess game is incapable of making an illegal move, yet can beat any opponent but itself.
Certainly, computer systems can be corrupted. But software bias is much easier to detect & remove that a bad human judge.
The problem is who gets to program the Artificial Intelligence. What equations or decision making indices shall it use to make decisions?
One solution to a plague is killing all the infected. Another is severe quarantine measures and letting everyone live or die as nature dictates. Neither is moral, but both could be logical decisions from an AI told “you have a pandemic and these circumstances, how do we stop the plague with minimal cost of resources and further lives?”