Accidents will happen, that is inevitable. Autonomous cars don't have to be perfect - they only have to be better than humans and that bar is not set very high.
There are very little examples of autonomous cars causing trouble on the road and plenty of them preventing accidents - an example would be videos on youtube showing Teslas predicting accidents in advance and taking action.