I think you see it too complicated. Compilation of programs will always result in the same output, regardless of whether it works, the output is the same. However give the Bible or any holy scripture to anyone and it generates a different output every time.
Religion is more like AI (or as we should call it, generalized semantic filters). Basically you filter out concepts and other information from raw inputs like nature and then you transfer/copy those and improve upon them over time. At some point the programmer is done with it and produces a ‘model’, can be a text, a book, or in Christianity’s case, the “Bible”, other people copy the model and modify or improve it, but at its core it’s still the same model. Some people reject old models and come up with a new model (eg. Islam or Mormons), although they, like all programmers, are lazy and copy concepts (code) from other models.
However, religions are the people that have no concept of what the model can do and then start asking it random questions (alike what you have today in ChatGPT). And most of the cases you get totally non-sensical answers, but some people believe what it says and start modeling their lives around it, as times go on, people start using these things (eg. Google Home or Alexa) without even asking questions about the underlying model, or the data it was given to produce the output, or the questions it was asked. They believe what it spits out regardless of accuracy. Some people will even use it to model their behavior, their decisions etc and cunning people can use that for profit.