DNA holds the genetic information that is passed down through generations and serves as the foundation for evolutionary changes. RNA, through processes like gene regulation, influences how genetic information is expressed, contributing to diversity.