Could I potentially save right before the egg hatches and keep quitting until I get the right gender or whatever I want?
No. Once you receive the egg from the Daycare man it's nature, ability, gender and moves are all determined.