When you chose to not be offended at God for situations you weren’t prepared to accept, you gain a victory you would never get any other way.
It’s a bad idea to put God in a box and expect Him to act according to your will. When that doesn’t happen, you’ll be mad at Him for not obeying. That’s the wrong side of the fence. That’s in the camp of, Not everyone who says to Me Lord, Lord, shall enter the kingdom of heaven, but he who does the will of my Father in heaven. (Mat 7:21)
When situations arise that you are not happy about, you have to know that God is good, no matter what. If someone dies, God is good. When you can declare that despite your hurt, you overcome a huge onslaught the enemy had planned for you.
God is always good. If you are mad at God, lay it out to Him. Confess that you are mad and give your hurt to Him. He totally understands and He can heal your pain. You’re not going to always understand why He does what He does, but He is always good.
Holding onto offence is poison and it’s going to kill you if you don’t let it go. God is good. There is no end to His goodness. Grab hold of that and don’t let go.