What specs are the most important like when purchasing a phone...whether it has a dual-core Tegra 2 processor, or how good the 1Ghz processor is on a new phone?

Or should you pay careful consideration to whether a phone has like 512 MB of RAM as opposed to 768 MB of RAM...which will be more important to how the phone functions speed-wise?