At this point it's more preference you want macos or windows/linux. 16:10 aspect ratio on mac is better for programming due bigger vertical length, but not a huge difference. If you are more into web programming mac could be better option. You can google about this mac is kinda more "optimized" for this then windows. But i like windows more so i vote for thinkpad.
Also don't buy gaming laptop for this, it will be hot, noisy, heavy and gpu does not matter for programming anyway.