In various scattered places online and StackExchange I've read that bootstrap resampling is more appropriate for calculating confidence intervals while permutation resampling is more appropriate for hypothesis testing, but why is this so (or is this generalization incorrect)?
I've seen it argued that this is because bootstrap resampling estimates the true population rather than the distribution under the null, but it seems to me that if confidence interval calculation is valid, the hypothesis testing is also appropriate via seeing if the null hypothesis value lies within the interval. Moreover, we can emulate the null distribution in bootstrapping by shifting our means (subtracting out the sample means and then adding back in the mean under the null).