Stanton was the Secretary of War, not the Attorney General or the Chief Justice. His opinion was one of may. Had Davis been tried he would have been convicted, no other outcome would have been conceivable to the Johnson administration.
...or no other outcome would have been allowed...