The 27-year-old Polish player will face either 25th seed Frances Tiafoe of the United States or Canada’s Denis Shapovalov next.