All of the cost comparisons are flawed. None take into account the time value of money. I think Internal Rate of Return (aka Discounted Cashflow Rate of Return) is best. Net Present Value, is OK.
What you bought it for, what you sold it for, and every last cent you spent on the truck are needed, along with miles and duty cycle. This is the metric that companies use to determine gas or diesel for their fleets. And most light duty trucks are gas and heavy duty are diesel, with a gray area in the middle, for sound money reasons.