Simply put, AI is just a programmed algorithm that performs certain tasks. An AI has no consciousness of its own and shows no understanding. The question of what is the relationship between AI and religion is actually utopian. Nevertheless, I have dealt with this question artistically.
The Robotics expert Anthony Levandowski, founded a church in 2015 that worships an artificial intelligence as a deity. The approach is that the computing power of computers, and thus artificial intelligence, will increase so exponentially that it will be godlike. In 2020 Levandowski dissolved this church.