Preferable to Go With the Flow

Something I've never seen put together, but which I'm sure someone somewhere must've already noted:

On the one hand we have these nations where there is concern about not reproducing at replacement levels, thus reducing the available workforce.

On the other hand we have these concerns about increasing automation taking over all positions, thus reducing the available jobs.

Seems t'me that it would be preferable to go with the flow, lower reproduction and automation, than to invite in hordes of uncooperative, unproductive, untrainable, third-world welfare cases.

But, what do I know? I'm not the head of a major European nation or anything...!