Welcome to the Ranch
Sorry that nobody has replied earlier.
Why are you sitting these exams? Many prospective employers will look for a qualification, whether a degree, cert. exam, or whatever, and once they have verified that, will forget all its details. If somebody has told you to sit a particular exam, however, sit that. Does it matter whether you gt the Java11 cert. or the Java17 cert? You will have to decide for yourself; we can only offer tentative suggestions.
I am not at all sure, but I think that the Java11 exam is a single‑stage programmer certification exam, and there are two Java17 exams, but one is only at Associate level, so you would probably have to sit the OCPJP exam afterwards.
One link on Oracle website; you are probably already familiar with it.
I think you should look at the details of the exam, and sit whichever you think you will get the better mark in! Consider: if you sit the Java11 exam (1Z0‑819), is there any point in sitting the Java17 exam too?
If you pass the Java17 OCPJP exam (??1Z0‑829??), I am sure there is no point in sitting the associate exam, nor the Java11 exam (1Z0‑819).
Some people sit the most recent exam to encourage themselves to learn the latest Java® version. If you think that would be helpful, sit the higher‑level Java17
test only.