Logic says a shot which hits the post or crossbar is not on target- but does it count as a SOT in YFF?
IMHO, the post and crossbar are NOT on target, unless in goes in off them.
Your logic is SpOT on. It does not.
Clever play with words- cheers and good luck!