You are assuming a 1-1 relationship between the mesh topology and mesh-geometry.
You should use dolfinx.mesh.entities_to_geometry(mesh, mesh.topology.dim, np.arange(num_cells_local,dtype=np.int32))
to get the correct indices to look up in mesh.geometry.x. See the documentation: