Might be quicker and easier for someone to explain what does first.
For at least 10 years now, most of the high danger “shots” are caused by a player shooting towards the goal hoping for a deflection, those don’t count as a shot on goal. Hitting the goal pipe doesn’t count either, even though a fraction of an inch is the difference between a goal and a rebound.