Honestly, if you're comparing durability in a real urban setting, urban trash cans usually win by a pretty clear margin. Most city bins are made from powder-coated steel, aluminum, heavy-duty plastic, or concrete. They're designed to handle rain, sun, salt, graffiti, rough handling, and the occasional kick or shove. Metal bins can rust if the coating gets damaged, and plastic can crack or fade over time, but overall they hold up well with basic maintenance.
Wooden barrels are a different story. They look great and can fit historic or park settings nicely, but wood is much more vulnerable outdoors. Moisture causes rot, warping, and splitting; insects can move in; and constant wet-dry cycles wear the wood down. A treated wooden barrel can last a while, especially if it's sheltered or well maintained, but it still needs more inspection, sealing, and repair than a typical urban trash can.
So in practical terms, urban trash cans are generally more durable and lower-maintenance for busy public spaces. Wooden barrels can be a charming choice for light-duty or decorative use, but they're not usually the tougher option for long-term street use.