The dependent verb take precedence; the pronoun would be a subject pronoun. I'm not sure that it can be done, though, except with relative pronouns: I gave it to whoever answered the door.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.