thanks for the answer but the iMac has a Fusion drive HDD most of the files and ssd little partIt is slower on spinning hdds but fast on ssds due to the APFS file system.
If you currently have High Sierra, you could upgrade to Mojave.
I would NOT try Catalina -- too many problems.
You can download Mojave using this link:
Get macOS Mojave