Ends of alignments are ignored by distance and not gaps