Actually, it seems like if you prioritize it, and start as Spiritual, you might be able to snag Buddhism, Confucianism, and Taoism, as they all lie along a single chain with just a few detours, like Writing. Code of Laws is sufficiently advanced that even if the AI gets the prerequisites, it doesn't tend to bee-line for it, so you can probably get whatever other basic techs your need comfortably.
I could also be wrong. But yeah, religion has rather nice commerical value, and historically, got pretty rich. The Catholic Church was the most powerful organization in Europe during the Middle Ages for a reason. Other examples, like the Templars (OK, they invented modern banking, sure) are also abundant.
Not a bad new mechanic all in all, if perhaps a little too politically correct.