The end result is Charles II of Spain:
Charles’ reign has traditionally been viewed as one of decline and decay, a foreign ambassador commenting in 1691 “it is incomprehensible how this monarchy survives”.
https://en.wikipedia.org/wiki/Charles_II_of_Spain#Legacy
Meanwhile the Austrian Habsburgs continued until 1918, and the son of the last Habsburg ruler, Otto von Habsburg, was a well-respected European statesman.