The market sorts outs what's valuable long-term and what isn't. I buy LPs on eBay and it seems like most of the "good stuff" remains collectible. If it's something privately-pressed and weird and it's on vinyl, more than likely it'll go through the roof.
I'm not sure about CDs but if it is a high-demand artist, the format won't matter and you'll move the shit.