Here are two of the biggest misconceptions when it comes to attacking the rim:
1 - It’s wrong to bounce backwards/retreat
2 - Once the defense bumps you on your drive, you should stop attacking
It is often times beneficial to actually give some space because it forces that reaction out of the defense. That reaction will allow you to play off of their reaction.
We also need to understand that contact at the hip does not mean they have us cut off. Often times it takes one or two more dribbles to turn the corner and beat their hip.