Custom ROM support relies a lot on a phone either being unique in some nerdy kind of way or having widespread community interest (especially appeal to Indian consumers since many community developers are Indian). The Google Pixel and Fairphone lines consistently have great support due to the first reason, while cheaper Chinese brands often have decent support for the second reason. Nokia is in a bad position in both respects - its phones are neither interesting or particularly cheap/good value for money - so its support is generally pretty bad.
If you plan to just use a phone with the stock ROM then they are all equally bad when it comes to leakage to Google. However brands that try hard to force you into their heavily modified Android ecosystems like Samsung and Xiaomi are particularly bad for privacy since they have a ton of extra data collection built in that is either forced or suggested to you quite heavily (many features are locked behind additional privacy policies and account logins). You are better off going with something as light as possible in that case. Since you mentioned Motorola, I'll add that I have a razr 2023 and beyond a few optional apps that I can disable, it is pretty standard Android with no additional data collection or accounts required. Motorola phones can have dogshit software support, though. Like this one I have is less than a year old and it's already taking them 4 months to push an update.