There is a separate shortcut to switch between windows of the currently selected application cmd + ` or ctrl + down arrow to show the windows.
So you alt + tab to select the application and switch to the right window. I personally think it's more reliable than Windows especially if I have a lot of Windows open (I used Windows for the last 10 years). On Windows I regularly switched to the wrong windows because of my fat fingers...