You can clearly see here (
https://www.youtube.com/watch?v=ROHW3sm2j0g) that Autopilot is detecting moving, stationary, stopped and oncoming vehicles.
There could be situations where this does not work accurately and that's when problems occur. If you watch closely you can even see it sometimes in this video.