Drivers of both cars were hospitalized in the hospital