Topological correlators and surface defects from equivariant cohomology