If these are the only options, then Anton is correct - get the best GPU, fastest CPU, fastest SSD and most RAM (in that order) you can afford for UE5. That being said, I can’t in good conscience recommend any of these for a primary UE5 developer laptop. I would look at getting something with AT LEAST an NVIDIA 2080 and ideally the newest GPU you can afford (3060/3070 mobility is good).
Finally, keep in mind that UE5 is largely IO-bound for builds, packaging etc. so FAST SSD is a must.