I agree. Target your criticism towards their insincerity
But I think that’s what they are criticizing. I don’t think they are criticizing prayer. One might criticize prayer if one didn’t believe in it, but that’s a different issue than what this is.
The Bible itself says don’t be public about it. Them calling for prayer is being public about it. Why can’t you make the connection?