A fractious public inquiry was held in an attempt to establish whether a trail should be registered as a restricted byway.