Or turn on airplane mode, then turn on wifi or mobile data. That would depend on the phone - some phones will do that, some will turn off airplane mode, and some won't allow you to turn wifi or mobile data on when you're in airplane mode. (Mobile data is used to access the internet, but on most phones it's not used to handle phone calls, even though some carriers, like AT&T, use 3G data for phone calls.)
But T-Mobile will handle calls through wifi, so DND is about your only hope.