Why did Yitzchak originally want to give the bracha to the wicked Eisav, instead of the Tzaddik Yaakov?

Was it all just one big mistake, or was there a deeper plan at play?