Davis wasn't worth the trouble. He was in someone's pocket IMHO.
And Lee? Hanged? Are you out of your cotton pickin' skull? No!
The Constitution defines treason, assigns Congress the power to prescribe punishments, and gives the President authority to pardon crimes.
After Vietnam, Peanut Cahteh also mass-pardoned draft dodgers, regardless of whether they had been charged or convicted.
So, mass-pardons of Confederates I think were appropriate, even though they clearly met the Constitution's definition of treason.
IOW, what they deserved was justice according to the Constitution, but what they received was mercy, also according to the Constitution.
And there's another factor to remember: nearly all of the top Confederate leaders, including Davis & Lee, after the war called for reunion and reconciliation, and that alone was worth the price of mercy: