It may be also related to where you are dealing.
NADA guides for similar models of same condition figures show 2-3K difference w/ diesel coming out better:
All w/ 200,000 miles: trade in: rough/average/clean; clean retail
2005 E320 CDI w/HK stereo: $5,460/$7,910/$9,985; $13,385
2005 E320 w/HK stereo: $3,785/$6,060/$7,960; $11,135
2005 VW Passat GLS TDI turbo: $3,425/$4,725/$5,775; $8,675
2005 VW Passat GLS turbo: $1,570/$2,670/$3,570; $6,095
The cost of diesel when new for Mercedes was only about $1000 but the extra power was much more like the V8 version which was about 6-8K more and sells for prices closer to the above used.
I did a bit better than average and local/state auction prices were higher for the CDI at the time. My mechanic knew the car and how well it was taken care of too.
It all depends on how much maintenance and repair go into the new diesel engine designs compared to equally complex gasoline direct injection engines over 200,000 miles. The DPF is an extra that is from too much government intrusion but has a silver lining.
Anyone familiar with the research on particulate matter can tell you they ignore the very small particulates that gasoline vehicles spew and that really do get into the lungs - likely worse than any diesel, but we might never find out because the research isn't being done. The research that is being done does not discount the large particulates that fall to the ground and are not inhaled because they take everything directly from the exhaust. But at least we can say our cars are extra clean, enough for the inside of the exhaust tips to be free of the black soot found on the cleanest hybrid gasoline cars.
I don't necessarily mind spending the extra money on the DPF which still can be recovered at resale and over time with fuel savings.
PL
My experience with selling and buying 200k miled cars is most are all around the same cost if they looking at like conditioned cars at least.