SSDs should never be defragmented, as doing so would not serve any useful purpose and would just accrue against the finite (although very large) number of writes an SSD can perform during its lifetime.
In fact the defragmenter that is built into Windows 10 will not defragment an SSD. It will perform a process it refers to as "optimization," which I believe corresponds to what is referred to as
"TRIM."Also, at best defragmenting the HDD prior to transferring the files will result in a slightly faster transfer, but the time required to perform the defragmentation itself stands a good chance of making the overall process take more time, rather than less time.
Regards,
-- Al