In the referenced previous episode, religion is depicted as useless, counterproductive, and irrational. In this episode, religion is depicted as useful for what it teaches, regardless of its supernatural basis. Data even says he experienced a "leap of faith", an idea very far removed from the attitude expressed in Who Watches the Watchers.
Review of Rightful Heir
Interesting contrast with the previous episode "Who Watches the Watchers"
1 September 2020
Warning: Spoilers