Do SSDs have a shorter lifespans than HDDs?

After I got my MacBook Air, people have been saying about how it won't last for more than 3-4 years.

Since the read/write functions of SSDs and HDDs are different, is it really true that SSDs are at a disadvantage because their longevity are discernibly worse than that of HDD's?