They don't really try to avoid any entity in their way, including static ones. This often causes them to crash into stations and stay there for a while till they somehow manage to get unstuck.
This can cause a serious amount of lag if this happens in larger amount of numbers or with larger sized ships.
I've seen it happen on a planet too: