The important distinction here is that CD-ROMs can store data indefinitely, but CD-Rs and CD-RWs can not.
BD-R and M-Disc CD and DVDs have archival storage life.