In California, it's the law for automobiles to give bicyclists 3 ft / 1 m of clearance. https://www.paloaltoonline.com/news/2014/09/16/3-foot-buffer...
Other things like bicycle lanes and intersections need to be designed to minimize risks like in the Netherlands.
Bicyclists and drivers have responsibilities to follow safe practices like:
- not running stop signs
- using proper reflectors, clothing and lighting
- not getting too close to other traffic or occupying their blindspot(s)
- not getting caught between curb and turning vehicles, and turning vehicles eliminating space to prevent bicycles from occupying space that is unsafe.
- not riding on sidewalks because it's mostly illegal