How to save a constant updating value

In all likelihood you are going to need both to accomplish your goal. Either by themselves are inadequate (for different reasons) for tracking angular position. Put the two together though, and they can compensate for their separate inadequacies and provide a decent IMU.