Australia's Ariarne Titmus is on course to face Katie Ledecky in another gripping final in the pool.