The most similar sequence used as the alignment template is found the same way as for the Sequence Match program, by looking for the sequence that shares the highest proportion of oligomers of a given length (7-mers) with your sequence. It is NOT determined by making a total similarity matrix and picking the top scores; that would be somewhat better but much slower.
In some cases, the alignment could clearly be improved, but the performance overall seems satisfactory.