A real drummer is preferable to a drum machine because no drum machine can add the human touch and groove that a real drummer brings to the table.   Drum machines sound much more robotic and less expressive than real drums. In some genres like Hip Hop and electronic music, however, electronic drums are usually preferred to a real drummer as this is part of the style.