Coco Gauff may have lost to Naomi Osaka in the US Open’s third round, but what happened next was inspiring