Fanfiction about them can explore different universes and scenarios. For example, what if they were raised together? How would their relationship be different? It gives fans a chance to play with the established lore and create new and exciting stories that the official Transformers storylines may not explore. It also allows for deeper exploration of their motives and personalities.
You can try looking on some fanfiction websites like Archive of Our Own (AO3). It has a large collection of Transformers fanfictions, and there might be some related to Optimus Prime and Megatron in the MPreg genre.
In a fanfic about Optimus Prime x Megatron, their relationship could be explored in a more philosophical way. For example, they might debate the nature of good and evil, power and responsibility. Optimus believes in protecting all life, while Megatron has his own ideas about power and how it should be used. This kind of fanfic could show how their different viewpoints could either bring them closer together or drive them further apart.
A great angle for a Megatron x Optimus Prime fanfic could be a body - swap situation. They are forced to inhabit each other's bodies due to some alien technology gone wrong. This leads to them having to understand each other's perspectives on a whole new level. They start to see the reasons behind their actions in the past and develop a new - found respect for one another.
One possible fanfiction could be about Optimus Prime and Megatron having to team up against a greater threat. Maybe an ancient evil from Cybertron's past resurfaces that is so powerful that their usual enmity has to be put aside. They start off distrusting each other but as they face battles together, they gradually come to respect the other's fighting skills.
It can also be appealing from a creative writing perspective. Writers can play with the personalities of the characters in this new and strange scenario. For example, how would Optimus Prime react to Megatron being in such a state? And vice versa. It gives a whole new layer to their complex relationship.
The plot could be about a power struggle. Megatron wants total control over Cybertron, but Optimus Prime stands in his way. However, instead of just fighting, there are political intrigues involved. There could be other characters influencing their decisions. Maybe some Autobots who think Optimus is being too soft on Megatron, and some Decepticons who think Megatron is being too cautious.
In a Megatron x Optimus Prime fanfic, the story could also be about a power struggle within themselves. Megatron is tempted by an ancient power source that could give him ultimate control. Optimus Prime tries to stop him not as an enemy but as a friend who is worried about Megatron's well - being. Their interactions are filled with emotional turmoil as they try to balance their friendship with their duties.
If they switched sides in fanfiction, it would be a huge shock. Optimus as a 'bad guy' would be very different. He might use his leadership skills in a more tyrannical way. Megatron as a 'good guy' would be strange too. He'd have to fight his own nature of seeking power. But it could make for an interesting story as they both struggle with their new identities.
A fanfiction could also explore a post - apocalyptic Cybertron where Megatron and Optimus Prime are the last two Transformers alive. They have to put aside their differences to try and rebuild their world. This would be a very emotional and character - driven story. They would have to confront their past actions and the reasons for their long - standing feud. As they work together, they might discover that they are not so different after all, and that their shared love for Cybertron could be the key to its restoration.