Worship is more than a set of rituals. It is the spirit behind them.
A sin which makes one meek and humble is better than a good deed which makes one proud and arrogant. A believer is a no-problem person.