The numbers from NYC on wiki include Brooklyn which was a separate city still in that time and should not be counted. So there is some confusion that will need to wait for me to be on a computer.
From 1691 to 1898, New York City meant all of Manhattan, about 23 square miles. Until the Act of Consolidation in 1854, Philadelphia was approximately what is called City Center today, only about 2.3 square miles. So in the period in question, New York had just about ten times the land area of Philadelphia.
The Census page about Population of the 100 Largest Cities and Other Urban Places In The United States: 1790 to 1990 says “The populations and rankings shown in this report are based on the boundaries of cities (and other urban places) at the time of each census (or at a cutoff date shortly before the census to facilitate planning).” The figures there suggest New York was already ahead of Philadelphia in 1790 (New York 33,131 vs. Philadelphia 28,522).
Everything I can find today is showing @RickJay to be correct. It looks like what I was confusing was possibly financial importance. Wall Street pushed NYC pass Philly by 1820.
I built a chart to compare both cities.
POPULATION ( NYC in Thousands)
We had a great thread about this, complete with link to a cool animation video (the link in the thread doesn’t work for me now, but this one does) and reminiscing about SDMD lore.
The chart also mentions changes, such as the amalgamation of Philly in 1854 and the incorporation of the outer boroughs of NY in 1898. But it starts in 1790 by which time Manhattan was already larger that what is now Philly city center.