said to mean that
It is nice to say that you are sorry when you are wrong, but is much better not to be wrong.
Imagine a case where it is nice to say that you are sorry when you are wrong, but is much better not to be wrong.; then “Repentance is good, but innocence is better” fits well.