You'll want to research independent movement versus locked movement for bodybuilding. There are a wealth of resources online.
In general, dumbbells will give you a fuller range of motion, working the muscle through a full range of motion, stretching it more, and involve more ancillary muscles / assistor muscles, so you'll end up with less injury and a more balanced physique, provided you do angonist / antagonist training. Stretched muscles can be up to 30% larger and exercising through a full range of motion helps to prevent injury. Barbells limit your range of motion, but, of course, not as much as a machine. Hand injuries occur more often in barbell exercise as your position is locked. Compound movements, like squats, and dead lifts, but not so much bench, with barbells, can give you a stronger base and help you with proprioception. If you're wanting to get stronger, and lift heavier weights, machines should be your last choice.
Cables vary the angle, but, at the end of the day, any particular joint only bends through certain plains of motions (e.g. your shoulders have 5), and how you work your muscle through those planes of motion really doesn't matter, as long as you don't "bind" your range of motion. If you're lean, and like looking at yourself in the mirrors, cables can be fun, but, incline dumbbell flies are likely more effective. You can more effectively load yourself with dumbbells, generally.
You've been too lazy to provide profile information, so, it's hard to tell what might be best for you.