Yes, imageDifference.py and similarly-named command-line scripts are Gen 2. Unfortunately, Gen 2 does not provide a framework for choosing which inputs are loaded (unless the task itself provides one), so a brute-force change to the hardcoded values is the only approach.
In Gen 3, the input dataset can be specified as part of the configuration: config.connections.exposure = "fakes_calexp", or preferably config.connections.fakesType = "fakes_", which will automatically set all affected inputs/outputs as appropriate.
Unfortunately, there is not yet an official tutorial for processing data with Gen 3 (see Recreating the LSST Science pipeline tutorial (gen 2) only using Generation 3 commands link tasks and the pipetasks). A colleague recommended Stack Club as the best existing resource for getting started. You may be able to convert your existing repository using the butler convert command-line utility, to avoid having to start over from scratch.
I’m not sure I understand what you mean by “in a tractwise manner”, but I do not think this is possible – the granularity of a dataset (per-detector, per-tract, etc.) is a fundamental property, and difficult to change in either Gen 2 or Gen 3.