No doubt that AI which is used for Level 5 autonomy should be trained to detect these situations and make the correct decision. Otherwise they wouldn’t be Level 5 systems. This is one of the many reasons why self-driving cars is not a solved issue yet. The systems we use today are either used strictly as a driving aid under close supervision by a human driver or used in small areas that the AI has been already evaluated to perform well in.