Imho you don’t even need to get into the ages-old faith vs. works debate. The real issue here is her complete hypocrisy: that was the one thing above all that Christ condemned the Pharisees for.
Matt. 15: 8-9 is pretty applicable here, where Christ is paraphrasing Isaiah 29:13
This people honors me with their lips
but their hearts are far from me