A cancer patient who gave birth early has said she would have "kept baby in tummy" if she knew her daughter was going to die.