So according to this library book, one of the reasons the Spanish Cortes grudgingly accepted the "foreign" Charles as king was when he married his cousin, who to the Cortes was sufficiently Iberian and thus more open to local policy. Who could Charles marry that is sufficiently high born but not Iberian enough for the Cortes to start making noises again (i. e. German)?