Why is DNA considered the genetic material instead of RNA?

Why is DNA considered the genetic material instead of RNA?

This is because DNA is chemically stable while RNA is not. A solution of DNA
in salt water, for example, will not degrade too much in 500 years,
while a solution of RNA will degrade in only a few days.