I’d imagine dentists would prefer composites since they can charge more for them, and they lead to repeat business when they fall out after a few years.
If the original filling is plastic, it’s often the case that the dentist doesn’t need to drill as much tooth out to fill a cavity. Anyway amalgam fillings are ugly.