The phrase "the right thing" is load-bearing, to steal a Claudeism. The Muslim Brotherhood that ran the country before El-Sisi thought they were doing "the right thing." El-Sisi also thought he was doing "the right thing." Egyptians mostly thought El-Sisi was doing “the right thing” during this time period. According to multiple independent opinion polls, his approval rating was high during this period because people were grateful to have stability.
In any society, you're going to have diverse views of "the right thing." To have a functioning civil society, you actually need the opposite of what you're saying. You need a collective general trust that people will follow the rules regardless of what they think is "the right thing."
Logic compels this conclusion. People who disagree on fundamental aspects of how the world and society should work cannot cooperate in a civil society if we trust that everyone will follow their vision of "the right thing." The only way we can cooperate is if we agree to neutral rules and procedures, and have a collective general trust that we'll all follow the rules regardless of our view of wrong or right. The thing I admire most about Anglo-American culture is that people will jump off a bridge if you give them a court order that complies with all required procedural formalities. That's how you create a civil society.