Actually, 1 of them isnt caused by either pilots fault or the aircraft’s fault (9M-MRD, MH17). While the other one is still unknown though I believe a human controls the aircraft but none would never know what happens to MH370 due to lack of evidences.
Come on, Just because Malaysia Airlines skidded off for the first time and you wont want to take it? Every airlines can skid off even the safest carrier like Qantas (the one in Bangkok). Although, we still need a better regulation to train the pilots more to prevent these incidents