HDD controller calculates and checks ECC either and en/decodes the user's 0/1-bits to the 0/1-bits actually to be written on the platter but at much smaller speed (0.3 GB/s vs 14 GB/s SSD max). HDD has an extra servo controller. HDD has an extra 512 MB - 1 GB DRAM.
WD HDDs 20 GB+ have some FLASH inside for metadata offload.