I'm not sure about the OS of Raspberry PI but if it's a linux, then it's not a good idea to run it on an SD card or USB flash drive. Or, I only need to move the swap partition to the HDD and it will solve the read/write cycle problem.
Do you really need the swap partition, or can you run without it? If at all possible, get enough RAM to run without swap.
But off topic: I have a 3 year old smartphone with a class 10 32gb micro SD card that is still going strong and not dying.
My phone has a similar micro SD card, but it only writes those 32 GB once a year. After that, it's full with images and videos, and I clean up for another year. My point is: phone writes are nothing compared to what a swap partition can do to it.
With SD cards, I doubt they are designed to function well under this kind of load.
Correct, SD cards don't have
wear leveling.