The stylish design and affordable price of the previous-generation Sonata, launched in 2009, propelled Hyundai Motor to its biggest-ever share of the U.S. market, and helped it escape an industry-wide downturn largely unscathed.