An episode of the Twilight Zone from 1961. Still very relevant today.
In a future totalitarian state, Romney Wordsworth is put on trial for being obsolete. His professed occupation as a librarian is a crime punishable by death as the State has eliminated books. He believes in God, also a capital crime, as the State claims it has proven God does not exist. The Chancellor finds Wordsworth guilty and sentences him to death, allowing him to choose his method of execution. He requests that he be granted a personal assassin, who will be the only one who knows the method of death, and that his execution be televised nationwide. Though televised executions are commonplace, the secretive method is highly unorthodox; the Chancellor nonetheless grants both requests.