For general purpose testing of electronic circuits, sensors, motor controllers and motors, would you recommend the DSOX2012A (100MHz, 1Mpts, 2GSa/s), 2022A (200MHz, 1Mpts, 2GSa/s) or the 3012T (100MHz, 4Mpts, 5GSa/s)? Not sure if it is worth to spend that much money on the 3012T.
That is difficult to say without knowing what exactly you will be working on. For very basic tasks the DSOX2k is fine, but it comes with very small memory and comes with some limitations (IIRC serial decode only works on analog channels) that make it less suitable for more complex tasks. It's not a bad scope per se but these days I'd rather get a GW Instek GDS-2000E which has more memory.
And as said before the DSOX3kT is very expensive for a scope with just 4Mpts of memory. The much better alternative is the LeCroy WaveSurfer 3000 but I guess you have reasons for not considering it.
How is the quality of Rigol and GW Instek scopes?
GW Instek has been around for a long time, like Hameg (now owned by R&S) they pretty much foxus on entry-level instruments. The build quality has always been good from what I know. Support had been a bit spotty but that was probably 10 years ago, and since then they have made lots of improvements and now are very responsive.
Rigol, well, I think the build quality is good. What would concern me more is that they are apparently unable to properly design their hardware (search for 'Project Yaigol'). Also, pretty much all their products come to market in a bug-infested state, and it can take a while until the worst ones get fixed (and some are probably never fixed, like ETS on the DSO6000). Rigol is cheap, the scopes are widespread amongst hobbyists, and they can be hacked.
Tektronix was very famous many years ago but it seems that their scopes are not popular anymore. What is wrong with Tektronix scopes?
As I already said above, Tek was famous when analog scopes were still a thing, and Tek has made the best analog scopes that were ever made, sometimes using some very sophisticated technology for back then. But Tektronix never really made the mental jump to digital, they would have gladly continued to make analog scopes if the market and their customer hadn't forced them to make digital ones. Unfortunately that is visible in most of their DSOs, which are average at best and in many cases a pain to use. There's very litte innovation in Tek scopes aside from the price, for which you get slow hardware with an awful UI that was designed by someone who must have hated humans. New scope models often aren't new scope models but simply a re-hash of their older scopes. Support has also taken a steep decline.
The equivalent to Tektronix for digital scopes is LeCroy, which are the ones who really push DSO technology forward and who do a lot of stuff you can't get anywhere else, not even from Keysight.