Both are important. The CPU is like the brain of the computer, and RAM is like its short-term memory. Without either, the computer wouldn't function well.