Many parents do in fact need to cause their children to undergo sometimes extremely painful medical remedies in order to relieve their suffering and pain. It is generally considered reasonable and loving to do so and neglectful not to do so.
Precisely!
This is what we refer to as needed or needful harm
Human beings, because we are limited in what we can and cannot do, oftentimes are required to inflict harm upon others in order to provide them with a greater benefit - i.e. painful medical procedures that prevent a greater pain and/or death down the line, etc
Here's the thing, though - God is not limited
God is limitless
There is nothing that God cannot do
{except for act contrary to His nature and/or possibly perform logical inconsistencies like creating square circles}
When God inflicts harm it as always, by definition, needless because He never, ever is required to inflict harm in order to provide a greater benefit
God can ALWAYS provide the greater benefit WITHOUT the harm!