Question: can mythical pokemon defend gyms?
Answer: While Legendary Pokémon will help them take on the toughest Raid Bosses and Gym Battles, they're not willing to leave their Trainer's side, so they can't be left to defend Gyms.