Stranded is much better if the wires will move, bend, or flex in service. However, you must be careful lest any stray strands work free from the bundle and touch something else. It is also required for crimped connections.
Solid is great for holding its bent shape, so long as the wire stays stationary.