Which is better the sleep number bed or the tempur-pedic mattress?

I have a tempurpedic pillow and within a couple of months the pillow flattens out slowly. So I’m wondering will the bed do the same thing within a year or two?
I’ve read a lot of bad things with the sleep number but no one explains why it’s so bad?