Thanks for the link, thats really interesting info
I agree about your points about hull design differences, but I would like to add that difference in sail area is probably not a factor.
There is plenty of sail area that can be configured on frigates and ships of the line, so much so that with enough wind you will lose efficiency of newly added sail/power because it will increasingly go into making the ship heel and increase drag and thus loss of efficiency, increase in leeway, or risk of capsizing.
If we are talking top speed we would have to assume "a lot of wind", and in that case these ships are probably more limited by their hull design than sail area, it is the hull that determines how efficient power can be turned into forward motion, how efficient it stays over the range of applied power via sail area increase and the optimum speed should be well below max sail area.
One would expect Montañes to have a more efficient hull for speed than say Ingermanland (if both ships were scaled to the same size), there is almost a century of ship building progress between them, but it is still true to say that Montañes will definetly be faster because she is longer and has a higher hull speed.