Raw is better if you want to make adjustments to white balance or boost the shadows/cut the highlights. That sort of thing because you are not making corrctions to an image that has already had adjustments and compression applied. The camera itself makes a raw to jpeg conversion which is the same as DPP. Shooting raw does not automatically give better results but gives you more flexibility and if a better raw converter comes along then you can still work with your old files but if you have jpegs then everything is "baked in".
Well exposed JPG is nearly as good as a RAW. But when you run into trouble, RAW will save your butt.