The problem is that any emergency SCOTUS reversal will take a day or two at least, which wouldn’t prevent Trump from spending a night or two in jail while it all gets worked out. The only other stumbling block might be the Secret Service. They may resist any attempts to imprison Trump on the spot. I don’t think New York court officers are all that eager to have a showdown with the Secret Service.
Is President Trump required to be present at the sentencing hearing in New York on July 11?