Is buying real estate in the USA on the primary market safe?

The system is mature and highly regulated, but you still need due diligence, inspections, and title insurance; safety varies by developer and jurisdiction.​