If it's either/or of the two, I'd take family over establishment (I'm assuming this means government?).
Religion is a lot like sport teams. It's thrust on you as a child before you really know anything; usually by a family member(s) and you either go along, reject it or reject it in time.
For me personally, we don't push religion on our kids and we don't really force them away from it either. My issue is that a child really isn't ready to understand what they're being told on something that can be so influential on life, I'd prefer they start dabbling into religion in their late teen, preferably 20's.
We're not religious ourselves though. A few years back when my daughter was 12 or so she showed interest in Christianity, bought a cross, was watching YT vids and that sort of annoyed me because I think she was doing it due to one of her friends, to fit in. I told her to stay away from the YT talking heads due to the high level of nonsense being pushed and said there's nothing inherently wrong with being a Christian, just don't do it for the wrong reasons and to have some understanding first. I then explained to her the basic tenets of Christianity myself and pointed her to Stephen Prothero's "Religious Literacy" as a start. She didn't want to read it though and the Christianity phase seems to be over.