Paul said:

The only thing that counts
is faith working through love.
– Galatians 5

Tad Dunne, writing of the philosophy of Bernard Lonergan, says:

Religious behavior and religious language often just paper over gaping holes in spiritual substance.
And it is the substance that counts.