There's no diff in video quality between dvi and hdmi. Both are digital, hdmi carries audio too.
As to which gives the best picture, it would really require testing. If you don't want to go to the bother of comparing- if my set only had one dvi and one component, I would do cable tv over dvi and dvd over component. If you use the tv mostly for watching movies then I would swap that.