You always look at what the building will be once the funds are applied. If you understand the "church" will become a residence, then it sounds like a HMDA purchase.
Likewise, if someone is buying a house and turning it into an office/business, then it's no longer a dwelling. IOW, it's not what it is. It's what it will become with your loan.