What are the primary differences between a solid-state drive (SSD) and a hard disk drive (HDD) in terms of performance and durability?