I'm not great with computers, but you might also want to take into consideration if you are wanting to play on ultra settings, how many packs you have and if you use mods at all. Personally I'd never go back to an all in one, once it kicked the bucket it just got tossed. I ended up building my own and it's so much nicer being able to upgrade parts as you want. I play with mods, cc and on ultra settings with all packs and have a Ryzen 3 It does the job but does start to lag a bit and that's with a GeForce GTX 1650 graphics card, the one you listed looks like it might be the graphics that is built in to the processor.
I did however upgrade to a Ryzen 7 a couple of days ago and was shocked at how much smoother it runs now.