Inertial sensors are used by the autopilot to maintain course.
Sensors typically have 3 axis, and include accelerometer, gyroscope, and compass.
mpu9250/mpu9255 – Many have large accelerometer bias. If it is too great, it cannot be compensated and remain within the +- 2g range during operation. 8Further, many sensors have failed axes, failed sensors (no compass) or simply do not work at all. Verify all 9 axes especially if you do not have a reputable source.
icm20948 - My experience has these sensors are identical in performance to the mpu9255, but the quality control is much better. They are unlikely to have issues.