They are both delusions. Delusion: a false belief that persists despite evidence proving it falseBecause anorexia is delusional. Transgenderism isn't.
When an anorexic sees their thin body in a mirror, they see a fat body. When someone with transgender looks at their body in the mirror, they don't see another sex.