There really is only one option between doing the right thing vs hiding something which may never be discovered. Suffering consequences sucks, but no regrets. Integrity does count for something.
Don’t change yourself so people will like you. Be yourself and the right people will love the real you.