Kinesin-1 and dynein use distinct mechanisms to bypass obstacles