I've had both, and a couple of other diesel's over the years. It really depends on whether you need it for towing or not and how much you drive.
A CDI is complex engine with a turbo, inter-cooler, urea injection, running extremely high injection pressures, etc. Other than the balance shaft issues on earlier models, the gas engines are more reliable, simpler and less expensive to maintain. Other than oil and filter changes, the gas engine will go almost 100K miles with basic maintenance. The diesel is expensive to service because it needs fuel filter changes every 20K miles, ad-blue, etc. The fuel filter and air -filter service is expensive because it's a 1 hour job or more to get at the parts. A complete diesel service is $800-900. Diesels are also notoriously hard on batteries. Like the fuel and air filter, they are also conveniently located......under the passenger seat under the carpet.
I have a 320CDI. When I replace it, I'll get a gas 350 since we drive about 10K miles a year. The diesel pulls strong once it's fully warmed up. Short distances in cold weather, you have to take it easy and it's way down on power. One more thing to watch is fuel contamination. All you need is one idiot to put gas in a diesel at a full service station or a family member not paying attention and you've got a $5000++ problem not covered by the warranty.