Habeas has long been celebrated as the great writ of liberty
because it places the legality of imprisonment in the hands of judges rather than jailers.
Its importance is underscored by cases such as Khalil, Mahdawi, and Suri,
where the executive has seized individuals based on their political speech and advocacy,
concealed their whereabouts from counsel and family,
and transferred them in shackles across state lines to distant detention facilities.
In such circumstances, habeas performs its most essential function:
placing an independent judge between the individual and the executive that has imprisoned him.
Allowing that protection to be extinguished simply because the executive ultimately seeks to remove the detainee from the country
would turn the Suspension Clause on its head.
It would allow the government to accomplish the functional equivalent of suspension without satisfying the extraordinary conditions the Suspension Clause requires
and without facing the political costs of suspending the writ openly.
https://www.lawfaremedia.org/article/free-speech--deportation--and-the-suspension-of-habeas-corpus