pasteri The important detail here is the graphics card or chip, not the processor itself. For the first two, both CPUs are more than fine for Sims 4, and more specifically, much more powerful than the two graphics chips they're paired with. (This is typical—graphics processing is more expensive, and everyday tasks don't need much of it anyway.) The graphics chip would be the limiting factor here.
The second (Ryzen) laptop's graphics chip is better than the first, and perhaps fast enough to manage ultra settings, depending on your play style and which packs you install. High-ultra settings should be fine, at the very least. The first laptop is fine, just not quite as fast.
The third laptop is much faster for gaming than the first two, but don't feel like you need to spend the extra money just for Sims 4. If you're happy with high-ultra graphics settings and like the second laptop in general, go ahead and get it.
I can't see the price of the second laptop because Amazon knows I'm in the U.S., but please do compare prices with other models you see at dell.co.uk. The important details, from a performance standpoint, are that the machine has a Ryzen 7 8840U and 16 GB RAM.