New York City is by far the largest city in New York State—and the entire United States—with ~8.3 million people (2023). Albany, the state capital, has ~100,000 residents. NYC's metro area exceeds 20 million; Albany's ~900,000.
Albany is the political center; NYC is the economic, cultural, and demographic powerhouse.