Deductions & credits

If I set yes to try and exclude FEI, will turbotax decide which situation is better?  That is will it choose to take the credit over the FEIE?

 

Thanks!