If someone pulls out in front of you and you cannot stop to avoid a crash, you should:

If another vehicle pulls out in front of you, it is appropriate to brake as long as there is room for your vehicle to stop while you are using the appropriate braking technique. However, if you do not have room to stop, swerving may be a safer response.
DMV Writen Test