There is one place where it matters quite a bit. If you fail to close a statement, it can cause whole sections of your site to not be readable, or to be included into a weighted section of the algorithm.
If like a lot of people you use the h tags to control font size, and forget to close the statement all the text to the next h tag will be considered as tag content and the appropriate weight applied to the words.
It can also affect styling for those words, making them appear differently on different browsers..
If you fail to close a comment, the page will ignore everything until the end of the next comment statement. This can cause things to disappear that you might not notice, or properties to be inhertied that you cannot figure out.
The major browsers are very good at displaying screwed up code correctly by making guesses as to the intent of the coder, but other platforms are much more likely to have these problems that actually affect the site display.
Even when the browser makes a guess, that is what it is, a guess. It may or may not be what you had in mind.
Lastly, if you at least TRY to validate your code, you will learn how to code better.
Just because the page is displaying properly does not mean that the content of the page is correctly understood.
THAT can affect rankings.