When compared with 39 weeks ' gestation ( either IOL or spontaneous labor ) as the referent , there was no significant difference in the cesarean delivery rate in women who delivered at 37 , 38 , or 40 weeks ' gestation .