Pegula defeated Kostyuk 6-2, 7-5 in one hour and 29 minutes.
Kostyuk was eliminated from semi-final contention in Group 1.
Pegula lost her opening match to Coco Gauff in three sets.
Kostyuk replaced Elena Rybakina after Rybakina withdrew through illness.
Pegula will next face Linda Noskova on Thursday.
Apex Sports News
Jessica Pegula won 6-2, 7-5 against Marta Kostyuk at the WTA Finals in Indian Wells, keeping her semi-final hopes alive while Kostyuk was eliminated from Group 1.