Here is a way you can eliminate most of the options. I will write the possible pairs of values as $(a,b)$ with $x-y=a$ and $x^2+y^2=b$. With all possible values we have 6 options
$$ (7, 17^2), (17^2, 7), (17, 7 \times 17), (7 \times 17, 17), (1, 2023), (2023, 1) $$
Now consider solving the equations generically. We first have from the first equation
$$ x = y+a $$
Substituting into the second equation yields
$$ (y+a)^2+y^2 = b $$
$$ 2y^2+2ay+(a^2-b)=0 $$
We know this will have solutions if the discriminant is greater than $0$, so we must have
$$ (2a)^2-4(2)(a^2-b) \geq 0 $$
$$ a^2-2a^2+2b \geq 0 $$
which gives us
$$ 2b \geq a^2$$
(Alternatively you can consider the equations in a geometric context and consider the closest point to the origin on the line to arrive at a similar result)
With this result we can eliminate 4 options leaving only $(7, 17^2), (1, 2023)$ as possible options. Then just solve each pair as simultaneous equations (note only one of the two gives integer solutions). Travis Willse answer provides a more efficient method but this is just another way of going about it.