Buy a car in another state, pay taxes twice?

No. Tell the dealer that you will register it in NY and you will only pay taxes in NY. Since CT is so close, they may be able to help you with your NY registration.