machine = cleaner, but more likely to damage
hand = safest, including keeping colour but definitely doesn't get properly clean.
so long as it isn't a high heat when using the machine, padding and such shouldnt get distorted. If its the kind of trousers that have removable pads for example, they may move out of place after a spin but you should be able to move them back without too much bother.