Interesting discussions here! Additionally, you can avoid duplicate building on your editing by checking the data validator preference in your JOSM. So your JOSM will detect duplicate building's warning before you upload your data in JOSM. 
OR
if you edit OSM Data from ID Editor, make sure you zoom in on the object to ensure the data hasn't been mapped already and avoid duplicate building. Have a great day and Happy mapping!!!