On the scale of "billions", right now it is impossible, not merely hard. As you say, it (likely) gets easier as the tech improves; myself, I am happy for things to get locked down ahead of time, but right now this wouldn't be possible for even a large and well-resourced racist government.
Tens of millions is possible, c.f. covid, albeit with essentially no control over who the victims will be, likewise c.f. covid.