I would have done it the same way, assuming that these 2 different routes being identical is merely a coincidence where the authority in charge of the hiking route could e.g. decide to add a shortcut or detour to the route while the mtb track remains unchanged.