Better Program or Better School overall?

Like many questions of this type, the answer is “it depends”. What extra options does school B offer that school A doesn’t? And more importantly, how likely are you going to exercise those extra options? Everything being equal, having more options is always better. How much better depends on the likelihood that you’ll exercise these extra options. If their “worth” is sufficient to offset the deficiency of school B’s program compared to school A, then B would be a better choice. Otherwise, choose school A.