So the role that magnetometers play in sensor fusion w/ IMU data is for yaw/heading/magnetic north estimation. In short, it aids your orientation (RPY estimate). However, with MagNav, they play a large role in supplying information that allows you to decrease your drift rate.
https://www.sagemotion.com/blog/how-does-imu-sensor-fusion-w...