I'm a software engineer who's had two children off school in lock down.
Refurbs are a great way of getting good hardware at a reduced price.
As others have said 8Gbyte RAM is the minimum you need for decent performance.
The other must have is a full HD display 1920x1080, avoid anything less...