Right now, going to a church is fine in most western countries. There are places where you’d rather not be seen visiting a church, but they’re not countries you’d expect someone to have location history on in the first place, for general protection from the regime.
Going to a mosque or synagogue, though? That’s more risky with the way politics have been turning.