For deads - the bar is very good. It helps to focus the lift more on your hamstrings then your lower back. Unless you're looking to work your lower back OR are powerlifting - I would say go with the diamond bar.
As for squats. Uh, unless you have really WIDE shoulders to put the bar on. Otherwise - no.