I have an interest in both. But what interests me more is finding an EU employer willing to sponsor me (the sooner the better). Which job do you think is more common for sponsorship? Which job is more future-proof (next 10 years)?
DevOps is more future proof (imho). It will expose you to far more technologies, and their interactions, that are much harder to automate away. Low code will disrupt those writing the same code , over and over, for web/mobile full-stack like apps.
DevOps is more likely to involve working on-premises. But the odds of getting sponsored are probably about the same either way because sponsorship is more a matter of a particular company's culture than role.