Actually, rats are omnivores while nutria are herbivores.
Actually, no. The dentition of both indicates a primarily herbaceous diet. The amount to which either may feed on flesh will vary by species (in the case of rats) and by circumstance (both rats and nutria). Nutria will ingest limited amounts of insects as part of their vegetative feeding, but will also seek out and eat mussels and crustaceans.