Inter beats Shakhtar for sure next week. They are stronger and their style of play does not suit the Ukrainians. I watched their last two matches in EL and CL and I don't see Shakhtar standing any chances.
The group positions will be decided in the match in Madrid. A draw there, Inter are out. The most likely outcome though is Real wins the group, Inter come second.