It all depends, if TRIM is supported or not. Way back then, it was a good idea to completely copy over the SSD to another device, format, copy back - without TRIM.
Defragmentation before copying the device is pointless; you don't do a block copy but a file copy when moving to another device (i.e. HDD->SSD).
(Way back then, still somewhere buried on a disk I don't remember, I had that cool SCSI copy program for MacOS, which really did a low level block copy. Great for all kind of workstations, like SUN, SGI...)
But: I usually only copy the data, keep the old disk (just in case) and do a fresh install. That has never done me wrong in about a zillion computers.