Contacts shunted by semiconductor devices