Your final mark is split 50/50 into the mark you attain in the final exam as well as a mark based on your ranking from all the school assessments you have throughout year 12. So yes, if you bombed out in the HSC it would affect you.
As for the second part of your question, you will get the best...