The story goes, that after Lord Rama killed Ravana to free his wife Sita, he made a pit stop at Trincomalee (in Sri Lanka).
Because he had sinned. He had killed a learned and devout Brahmin.
To absolve himself of such a sin, he prayed to Lord Shiva at Trincomalee.
This is truly mind-blowing. God Himself finds the need to atone for his so-called sins. Which means there is no escape from karma, for anyone, as Krishna explains in the Gita.
Also an avatar of Maha Vishnu is praying to Shiva. The reverse happens too in various texts. Gods don’t have a problem with their statuses and hierarchies. Humans do.