Get cordless if you will use it often enough, where you need to be more mobile, that the price premium for same build quality is worthwhile.
Impact driver and drill are two frequently used items where it makes a lot of sense. I would not get a Ryobi cordless circular saw for home use, the sawzall only if you would also use it for garden/pruning (which is a great use BTW), and jigsaw, I never saw the need to add a cordless with my corded working well. I mean this in context, I do have a few Ryobi 18V tools.
Doing drywall, I imagine a rotary tool like their P531 (if they don't have a newer version now) could be handy but for a one-time event, I don't see the real benefit to spend more for a lighter duty tool in order to avoid a cord where you don't have a hassle using one.
It also depends on the specifics, of which Ryobi cordless tier you're talking about, versus what the corded option would be. I have no problem using Ryobi's low end impact driver but I wouldn't get their lower tier drill, sawzall, or much else over their higher model # offerings of same type tool. That doesn't necessarily mean brushed versus brushless, that is a different conversation... though with each passing day it is more and more about brushless since their newer high end models are now mostly brushless. Ignoring internet sales, you get what you pay for.