What if I don’t give labor and I’m 39 weeks what will the doctor do?

I’m just curious because my little one is holding in there lol I’m shocked honestly

I’m 38 weeks 3 days

No complications, healthy pregnancy

But what if he just doesn’t want to come out at 39 weeks or shortly after? What would the doctor do? I have an appointment with my doctor a few days before my due date & one on my due date, what will they do on those appointments if he doesn’t come by then?