Coco Gauff said she hoped she got “the bad match out of the way” as she overcame 51 unforced errors and nine double faults in beating Marta Kostyuk.