What can be used as enemas, and when would a doctor prefer an enema over the usual laxatives?

Almost any liquid. In fact, you can fed fed via enemas; this was common before we invented IV nutrition (parenteral nutrition). Enemas are very useful when the constipation is so bad it is making you vomit; laxatives just don't reach the colon when it's that bad.