Compatibility within the same bike should be taken for granted!
I remember one/some of those proper adventure fat bikes (like alaska bikepacking type stuff) the front fork was made with the same axle spacing as the rear, so you had a second, spare rear hub with a single speed cog on it; in case your freehub or derailluer broke.
I’m just happy my front and rear brakes take the same pad size.