Have you looked into other opportunities that would combine your interests? If not, it's easy to have a "scarcity mindset" where there are only a few options available, and each option seems like a life-changing one.
For example, you mention that your career would involve giving up machine learning. There are definitely jobs in Germany where you could do both, here's an example of one: https://www.argo.ai/careers/open-positions/?gh_jid=3560509 (disclaimer, I work there).
In my opinion, there will always be opportunities for interesting work. There will be opportunities for work if you complete your PhD, and there will also be opportunities if you don't, so pick whichever route you think will make you happiest in the long term. Don't pick an option out of fear of missing out on a job, there will be more in the future.