The legal fiction of corporate personhood does not grant them all the rights of a natural person. For example, in SCC Acquisitions, Inc. v. Superior Court, the California Court of Appeal ruled that corporations did not have a constitutional right to privacy, despite the California constitution extending privacy rights to all people.
https://www.natlawreview.com/article/court-holds-corporation...