Let be a finite set of positive integers. Assume that there are precisely 2023 ordered pairs in so that the product is a perfect square. Prove that one can find at least four distinct elements in so that none of their pairwise products is a perfect square.
Note: As an example, if , there are exactly five such ordered pairs: , , and .