Bemisal (1982)
This Hrishikesh Mukherjee film pits Amitabh Bachchan with Vinod Mehra, as both play doctors and great friends -- in love with the same woman, Rakhi.
Bachchan, at his absolute noblest, decides that the rich, successful Mehra would be able to give Rakhi a better life. He persuades her to marry Vinod. Later, the cunning Mehra goofs up and is about to be jailed for malpractice, but Bachchan falsely confesses and goes to jail on his -- and her -- behalf.
Also read: I will also humiliate Shah Rukh: Amar Singh