The 2 standards focus on different areas. The latest standard is the recommend one.
ISO 9001:2008 focused primarily on ensuring consistent quality through documented procedures and preventive actions.
ISO 9001:2015 introduces risk-based thinking, leadership engagement, and adaptability, making it better suited to modern business environments.