Hurricane Otis became the strongest on record to hit Mexico’s Pacific coast, with peak winds up to 165 miles an hour.