What is allowed inside a defer expression?

There’s a related thread which goes into more detail about why you probably don’t want to flush from a defer, as well as why you can’t try from a defer.