Both are nucleic acids containing genetic information with different sugars deoxyribose and ribose sugars
RNA is more than ‘genetic information’. tRNA, microRNA, ribosomes and so on have plethora of other functions. Only mRNA and genome of some viruses falls in ‘genetic information’ type.