Hyundai Motor's second-quarter net profit stayed near a record high achieved a year earlier, beating market forecasts, as strong China growth overpowered rising competition and tight supply that eroded sales at home and in the United States.