It is an inexpensive AIO, probably using CIS type scan engine, so it's more than just the true resolution that is the limitation.
When quality matters, (then you're out of luck but...) you might want to scan at twice the (horizontal) resolution you want, then edit/touch-up if needed, then downsample it. I mean 1200DPI or lower, no point in having it extrapolate to higher horiz. than 1200DPI.
Then again, considering low end CIS best use case is scanning B&W documents, not color reproduction or 3D field of focus, if the lower resolution is "good enough", you don't need the extra step of downsampling, and if the higher DPI setting is more than its buffer and USB transport can handle in realtime so it is moving the sensor backwards, then forward again along the scan bed to compensate, that can degrade quality as well.