There is more to go wrong on a diesel and these engines are much more expensive to maintain and to repair than a gas engine. It is the price one pays for the greater torque provided.
All the major diesel pickups improved dramatically from 2010 on in terms of reliability. Often people focus only on the "engine". Take the Ford F-250 diesel powered pickups. Their primary problems that required repairs were with the engine, but they also has problems with the cooling system, problems with the driveline, problems with the fuel system, problems with the electrical system, problems with the suspension. The only part that was reliable with the 2002 to 2009 Ford trucks was the transmission.
I don't care if a problem is "minor" if it results in a $1000 bill and I have to leave the truck at the shop for a day or two. That is why I have loved my Toyota pickups over the years where with 5 trucks that all had over 170,000 miles of hard driving apiece or more than 850,000 miles in total. I only had one unscheduled repair done and that was a clutch.