выходить vs. уходить?

i once asked a native speaker what the difference is between выходить and уходить, and i was told that выходить means to exit in a general direction, while уходить means to exit in a specific direction, and that is related to why exit signs on transportation say выход. recently another native speaker told me that there isn't really a serious distinction between выходить and уходить, and in particular that the distinction i was told before is false. can native speakers here describe whether they see a difference between выходить and уходить, and if so what it is in practice?

выходить mean exiting for the room, car , room from some spaceуходить - to leave example он уходит с моего урока he is leaving from my class

выходить means to exit from indoors into the outdoors or into another indoor location. for example, to exit the room, to exit the house. уходить means to leave, to walk away. leaving may involve exiting or may not. if you are standing with a group of friends in a street having a conversation and one of them leaves, you'd say that он ушёл or она ушла - he or she left. they did not exit anything. same is true if those friends were at a party somewhere indoors and someone left, you'd say он ушёл or она ушла. if they left the room to go for a smoke outside, for example, you'd say он вышел покурить, since the assumption is that he did not yet leave the party for good, but just existed the room for a few minutes and is coming back. if at the same party someone migrated from one room into another, you'd say она вышла в другую комнату - she existed this room and went into another room, she may be back. if two people were having a fight, and one of them went to another room to cool down, you could say он ушёл в другую комнату - he left, at least for a while, not willing to come back immediately. there are circumstances when those words can be used interchangeably.