Sorry, neither was a mistake. Both are pre-meditated acts.
The software on the Uber car was demonstrably not ready to be tested on real roads, as was seen last week in the logs in the NTSB report. It is premeditation to take a system you know can't cope with real-life situations and put it on real roads.
As to the huge political furore around the Kashoggi murder, there isn't much more to say there, it was front page news for a couple of weeks and nearly everybody has condemned the act, you can't accidentally assassinate someone.