GANs vs. Transformers: Which Is Better for Images?