Hi and welcome to OSM and the forum

There is no tag “This is a building on a street corner” in OSM. In rare cases there might be 2 entrance-nodes on the building with different address (street names). You will need to develop you own algorithm.