I've always found the idea of comparing gods to parents quite silly.
The reason parents have to use any kind of disciplinary action or "tough love" on their children is because their children are born without important knowledge and survival skills that they need to have, and the parent has to either imbue those kids with the necessary knowledge or keep them from danger until the child develops the capability to no longer need protecting. When a parent tells a child "don't try to climb up to the stove", they're not doing so for arbitrary reasons, they're doing it because if the kid tries to climb up the stove they could end up terribly hurt or dead. And if the kid doesn't listen and tries to climb up to the stove anyway, then the parents put the kid in some kind of punitive "time out", the parents are not punishing the kid because they feel like it; they're doing it to save the child's life, and they have no better practical way of getting the lesson into the kid's head. If parents could magically have kids just know not to climb up to the stove, they wouldn't need to use "tough love" to prevent them from doing it.
Any good parent would, if they had the option, choose to have the child born with the necessary survival skills, rather than have to restrain or punish the child to teach them. No good parent would ever choose to have to punish or restrain their child if they didn't have to. They just don't have the choice; they have to take the child as it is born, without the necessary survival skills, and do the best they can.
But the situation is entirely different with a god. There's no reason a god would ever have to punish, restrain or use any kind of "tough love" on its creations. If a god wanted a child to not climb up to the stove, they could - among other options - change the child's body so the stove couldn't hurt them, change the stove so that it wouldn't hurt the child, make the stove infinitely unclimbable, always be present when the child thinks to try climbing the stove, and so on and so forth. Or they could simply just make the child to begin with having the innate knowledge to not climb the freaking stove.
I understand why people want to compare gods to parents. Parents have a remarkably difficult job, but the good ones do it admirably and deserve our respect for the effort they put into it despite the hardships of the job. A god, however, has no hardships except those of its own making, and deserves no admiration or respect for punishing people arbitrarily and just for the hell of it. In fact, it is rather offensive to parents to justify the behaviour of gods by comparing them to parents.