You asked how to reset to factory - that is what recovery does minus any apps which are not an actual part of the OS (which means iLife and iWork). They might have been "included", but never were part of the OS itself.
All this did is reinstall osx and there is no hidden recovery partition. It downloads the whole thing.
It did not make the Mac exactly the same. You must not know how it works exactly.
Well, I do know how it works - I've tested it several times. Yes, I know it downloads the installer for the OS which is +/- 5 GB. It also automatically installs a hidden recovery partition - which is hidden; you can test to see if you have it by booting up while holding Command + R - if it boots into the Mac OS Utilities screen with a choice of reinstalling the OS or doing a limited number of other things, then you are booted into the recovery partition.
It's a shame apple got rid of the disc drive and not including a recovery partition to go back to factory defaults.
It had iLife with the word processor, database, presentation, web site builder, garage band, iMovie etc. doing the command option r on boot up only downloads and installs osx.
And, I told told you that the "extra" apps would not be automatically downloaded. The recovery method (whether local or internet) only installs the OS; this has been so since Lion and digital only delivery was introduced. Apple has made dramatic changes to the licensing agreements/terms.
The support article I linked to explained how to re-download iLife (if it originally came with your Mac).
And, if you accepted them originally, then no, they cannot be transferred to another owner because their license is not transferable. If you did not accept/install them and never updated them, then yes, they can be transferred. All that information is included in the various SLA's.
If your iLife and iWork were on disks originally, then that is an entirely different situation.
You can also purchase an external optical drive. I've used one for years.
Returning it or not - it's your decision.