It's bit of both, I think. Murthy was trying to eliminate potential CEO candidates and sabotaging their work. Swan has stakes in Murthy's departure, but I think all in all this is better for the company's health. Swan may not be the right man for the job necessarily, but Murthy was destroying the company from within.
Murthy saw Jim Keller as a threat, ergo his machinations eventually worked and that's what got Jim Keller to leave IMO.
Bob Swan saw the writing on the wall and noticed Dr. Murthy's machinations.
So he secured his throne for a bit by laying the blame on Dr. Murthy and ousting him.
Raja Koduri is too new to be a credible threat in the short term.
If the Board sees Raja Koduri succeeding to some degree with Xe, even if it isn't faster than what AMD has, but is close enough, then I can see Raja eventually being groomed by the Board to become future Intel CEO.
With enough iterative improvements from a Xe GPU that's behind AMD's equivalent in the market place, it can catch up over the long term is probably Raja's long term strategy.