"Doing the right thing" is a phrase that encapsulates the idea of morality and ethics. There are several synonyms that can be used to convey this idea, such as acting with integrity, behaving ethically, making the honorable choice, choosing the moral path, engaging in virtuous behavior, and exhibiting righteousness. These phrases all emphasize the importance of making decisions that align with one's values and beliefs, and they encourage individuals to consider the greater good when faced with difficult decisions. Ultimately, regardless of the specific synonym used, the underlying message is clear: it is always better to do what is right, even if it may not be the easiest or most convenient option.