This question is a bit broad. You mention the Star Wars universe, but even then things will wildly vary.
As far as military implementations are concerned things will depend on purpose. Humans have the ability to be very flexible in their problem solving approaches, and to learn from their mistakes.
However they also require months or years of training, physical training which may result in injuries, they have to cope with diseases, etc.
Robots are going to be purpose built. They may not be as smart, as flexible, or as fast as humans in certain situations, but they will also be fully trained from the second they come off the assembly line, and follow orders obediently.
The pros and cons here will greatly depend on the situations in which they are employed.
Here is gets even trickier. You want to breed clones which are trained to kill, but are then introduced into civilian life. Who's to say that they will remain loyal to you, or want to keep performing their duties when exposed to the wonders of the universe? They may just use their skills to erase their tracks and disappear.
That said, arguably, trained humans will make better spies, or bodyguards as they will be more flexible in approaching unexpected situations.
What it really comes down to is economics and politics.
If it's cheaper for you to clone one thousand indoctrinated clone troopers and train them for your purposes then that's what you'll do. Additionally, if there's no political blow-back to cloning human cannon fodder, then you are free to do as you please.
If it's cheaper to build 1000 battle droids than clone, condition, and train 1000 soldiers then that will most likely be done.
Economic and political imperatives are always the ones which dictate how these decisions are made. Look at the current battle doctrine of the USA. Predator drones are being employed more and more. Why? It gives them the ability to strike unexpectedly, and it's cheaper to drop a missile on a group of unsuspecting enemies than to ship a trained military unit half way across the world, get them to that location without scaring the targets away, and then deal with the loss of men and equipment.