Python, and in 2026 it's not really a debate for industry work. The entire modern stack — PyTorch, scikit-learn, Hugging Face, every LLM API and deployment tool — is Python-first. Job postings reflect it at roughly a 10:1 ratio.
R still genuinely wins in two places: academic statistics (specialized statistical tests and packages that Python lacks) and certain biostatistics/econometrics niches. If you're headed for a stats PhD or pharma research, R earns its keep.
But the pragmatic path is: Python as your primary language, and if you later need R for one specific statistical method, learn just enough — the concepts transfer almost one-to-one. Your professor isn't wrong about R's statistical elegance; the industry just voted otherwise.