I used to automatically think diesel, but in the last 10 years or so, my thoughts have changed....modern diesels have a tough job of meeting emissions and are therefore loaded with lots of emission related equipment, which seems to be effecting long term running costs compared to petrols, especially if you are doing low mileage, and mainly town related driving.
Clogged up EGR valves seem to be common and ive seen cars as low as 45,000 miles needing a new EGR valve. The latest soot traps seem to be causing all manner of problems, especially with low mileage, short journey interval cars, ie if they get clogged the cost can be huge, especially if the Cats have become damaged....again, have seen this on low mileage Mums cars which just trundle to school and back.
Injectors....in general diesel injectors seem to require earlier replacement than petrols
Turbos....seen a lot of turbo's on diesels needing replacement.
If you do a lot of high mileage + long duration driving then diesel reliabilty is not too bad but if its low mileage, short duration driving then petrol is the more reliable
Talking to the Techs at my local Mercedes Specialists...diesel cars provide plenty of work for them, whereas the petrols seems to go from one service to the next with very few issues.