RAM matters when it comes to performance, multi tasking, and etc. Internal storage, not as much, at least, until you fill up your internal storage with texts, apps, and other data. 4 GB should be fine for now, but as apps get larger, might become a bit of a liability.
Sent from my Galaxy Nexus...