To me, a 2-unit dwelling would be a property that had one dwelling upstairs and a second downstairs. I've seen those in New York, where they're common in Staten Island, etc. The property may have originally been constructed as a single family home.
A duplex is sort of the ancestor of the townhouse. Two houses that share 1 common wall. I've seen those in many places.