Using explosion as a suicide move triggers opponent's Red Card item, and does not allow you to select your next pokemon.
Solrock uses Explosion against Mew (survives), the red card activates, even though my Solrock has fainted. Random pokemon from my party is switched in (INCORRECT).
Tested on Showdown, and the red card does not 'switch out' Solrock after fainting with Explosion. I am able to freely pick the next Pokemon to bring in.
TLDR: Issue with Red Card and switching priority after using a fainting by a move with recoil etc