Not perfect at all, the Russian invaders shot down a passenger plane from 33,000 feet for no reason.
This is so shocking because it came totally out of the blue, not because it was a tragic mistake made in the heat of combat, this has no excuse or legitimate reason for there even being such a threat possible.
What threat did the USA face from the passenger plane it shot down in 1988?
What threat did Ukraine face from the passenger plane it mistakenly shot down in 2001?
The comparison is perfectly valid.
All 3 were mistakes.
In the case of the the Malaysian flight, it would have been easy and common sense to route around the small war zone.
Some of the Malaysian flight crew protested the route beforehand, some even switched shifts specifically to avoid it. Most Airlines avoided the small Ukraine warzone by policy.
Why? Because not directly overflying a warzone is common sense.