In this paper, we prove several rigidity results for compact initial data sets, in both the boundary and no boundary cases. In particular, under natural energy, boundary, and topological conditions, we obtain a global version of the main result by Galloway and Mendes [Comm. Anal. Geom. 26 (2018), pp. 63–83]. We also obtain some extensions of results by Eichmair, Galloway, and Mendes [Comm. Math. Phys. 386 (2021), pp. 253–268]. A number of examples are given in order to illustrate some of the results presented in this paper.