Oh, well let's just pack it up and stop discussing philosophy then! And, "Suffering might be an illusion"? Please tell me you are not justifying God on that basis! Suffering may be an illusion, but when you are the person suffering, it sure don't feel like it! And this, after all, is the ultimate basis for any viable moral code, or at least one based on concepts of absolute Right and Wrong. Invariably, what causes suffering for other people is considered morally wrong. Considering that suffering might be an illusion (presumably of God's making) does not change the morality. In any case everything we experience is an illusion.
In any case, that's human morality. Divine morality is different. Remember, everything in the Bible is defined as good or bad according entirely to God's whim. God saw what he had made and it was good. God saw what man had wrought and it was not good. And God waxed wroth.
Therefore it is impossible for God to behave immorally, since anything God does is, ipso facto, moral. That does not, however, extend the morality of all God's acts to human morality. In other words we cannot wipe out entire populations except at God's direct Command. After all, one phrase that automatically implies bad behaviour, ironically, not good behaviour is "playing God".
Yet another way of looking at it is to consider that God, having created the world, done this and that, walked in the Garden of Eden etc., subsequently enacted upon himself a strict rule: no direct interference. God is all-powerful and utterly omnipotent so any kind of action on his part will disturb the system He devised in the first place. He created Man and gave to Man free will. Some people are bad and some people are good. He is watching to see if Good will ultimately triumph over Evil. But to actually interfere would negate the gift of Free Will, and would be a highly immoral act, even if the only intention in acting was a good one. If you have power over and above other beings, use of that power becomes progressively less moral the more of your power you wield. God is UTTERLY omnipotent, so anything he does would be INFINITELY immoral. So he does not interfere. In the case of the first post, God is not helping the innocent sufferer. But it would not be good for the sufferer if God stepped in and "helped", for where then would everything that it means to be a human being, end up?
Some minor writer years ago talked about losing his faith in God because his friend had died in a mountaineering accident. My immediate thought, as a proud atheist, was, "What a pathetic reason for not believing in God!"