get the better cpu. you can usually add more ram down the road, but won't be able to change out the cpu ever.
get the most cpu you can afford for sure, then worry about adding ram later on. you'll get better gpu out of the ryzen laptop so that's the way i'd go.