Direct upgrade to 17.12.X is fine. Make sure to read the Release Notes carefully.
I have recently upgraded several of our Cat 9 switches, from various 17.3.X or 17.6.X trains, to 17.12.4 without any "automation" assistance (line PI or DNAC) and I have 100% success rate.