The problem with religion is that it describes facets of human mental, cultural, and emotional processes (as all fictions do,) but attributes them to non-human parts of reality. Thus it is, in any rational sense, a terrible model of
anything.
Your mistake is in claiming that religion is about 'meaning' where science and mathematics aren't. Anywhere you use language, you study meaning. Meaning is a feature of language, and religion tends to use the least reliable and most inconsistent language of any of those subjects. If religion is a search for meaning, it is an incredibly stupid way of doing so.
So the one thing you've claimed it is useful for is something that it is demonstrably bad at.