An independent samples t-test is used to compare two groups and is appropriate when the independent variable has two levels, while a one-way ANOVA can compare more than two groups and should be used when the independent variable has three or more levels. The document provides examples of when to use an independent samples t-test versus a one-way ANOVA based on whether the independent variable has two or more than two levels.