Spray foam is useful where air sealing matters, while batt insulation is practical for clean framed cavities before drywall. The best choice depends on the area, budget, code requirements and site conditions.