It's also to identify targets for the future.
Trump was fortunate to avoid the bear trap. The Media DeathStar would have mangled Ted Cruz in the general over his stance.
It was a trap set for the Donald. Cruz would have been equally bad as Obama except it would be in his response.