I believe the preference for plastic has to do with them being thinner and molded in color.
Plastic handrails have better detail in the stanchions usually but there are after market ones as good.
Metal handrails can be painted of course and are more robust.
In some cases the two can be changed...