Generally SSDs are the more durable of the two. They don't have any moving parts and are more resistant to temperature and shock... such as being tossed in a bag and dropped. But carefully looked after, a hard drive can last for years without problem.