I'm in favor of going with the 30-year mortgage because of the flexibility it gives you. I'll also assume the student debt is at a higher-interest rate, so use the difference to more aggressively pay that student loan down now. Once that's gone, you will be able to accelerate your retirement savings.
A good 30-year mortgage should not penalize you for pre-payment (check the fine print). So after the student loan is gone, another conservative alternative you should have is accelerating the paydown of the mortgage principal later, effectively scheduling yourself a 15-year mortgage with almost as good of an interest rate as the actual 15-year choice you have right now. And if your situation changes, you could always dial back to your 30-year payment. (Flexibility!) If you choose the 15-year loan now, you are committed to that higher minimum monthly payment unless you refinance again.