Cable flyes are slightly more effective as they provide resistance throughout the entire movement, whereas dumbbells do not produce significant tension at the top portion.
That said, both the cable chest fly and dumbbell fly are still extremely effective at working your chest, so if you prefer one over the other (or any of the other chest fly variations we cover below), go for whichever one feels best.