If you ask people that would still have 25+ years of life after they're freed, I bet a lot of them would willingly take that trade.
Nobody knows how long you will have to live, especially not if you spend 10 years in an average prison. But there is a limited time of being young.
I don't think there exists an amount of money I'd take in exchange for 10 years in jail, at any point in my life. 10 years is a long time.
And sure, it depends on the jail... Can I like go for at least a short bike ride or go running? Can I have my computer and internet and Hacker News? Can I drink my oolongs and pu-erhs? Is the food delicious? But then it's not much of a jail anymore...