Former world no. 1 Caroline Wozniacki beat Tatiana Prozorova to win her first match at the US Open since 2019.