Mercedes-Benz, the leader in luxury sales after the first quarter but topped by BMW in the second quarter, continues to lose ground as the automaker grapples with production shortfalls caused by tight semiconductor supplies that have roiled the industry since the start of the year.