My 2017 iMac has always been slow, why?
It was indeed a Hard Disk issue. I have bought a Crucial SSD from Amazon and a USB 3.0 to SATA III connector. Since then, I have been using this configuration with the macOS being installed on the external SSD. I get r/w speeds of 480 MBps. The Mac runs magnificently. Nothing to complain.