From experience:
- Layup if you have the space and time.
- Or a gentle dunk if you have the hops to get up there.
What you want to avoid is going for a power dunk (windmill, tomahawk, etc) and getting rejected by the front or the back of the ring. I smirk every time I see one. I played against a young guy who was on a fast break with all the time in the world. He went for a power dunk, powered it off the back of the rim, I got the rebound coming up near the 3 pt line and passed it up court to my team. He looked a bit embarrassed, I said you should have laid it up and we both laughed.
If you have the hops and just dunk it with both hands - basically just putting/pushing it down through the hoop then it's actually a higher percentage shot than a layup (sometimes you get it rolling out around the rim) but in a game going for a dunk often takes longer than a layup which gives the defence more time to get to you and if you are trying to dunk right over someone then you are bringing the ball quite close to a defender and a good defender can screw up your shot by getting a couple of fingers as you bring the ball up from your dribble or a solid hand between your downward dunk motion and the hoop - that's one cold statement block right there.
So I prefer to layup when free and baby hook in traffic (can't block that old school stuff) but then I'm 58 and haven't dunked for about 5 years.
10 feet is just the hoop height so definitely blockable but you rarely take a jumpshot right in the face of a defender. You either move into a space where you have some separation from a defender or you have movement while your defender is stationery so when you transfer horizontal movement into vertical movement you will normally rise well above someone jumping from a stationery position but you add in a fade away and it just becomes incredibly hard to get that close (and some more to cover the fade) and get the vertical. What is a lot easier is that as other defenders recognise that he's moving to a position for the jumpshot then they'll come from behind or the side (so they have horizontal movement that they can transfer to vertical) and the fade won't be away from them so it's blockable but unless they block him while he is still bringing the ball up in front of him it will most probably be from someone who isn't his primary defender.
This is the way.