Both are probably good areas but I can speak to accounting. The entry level job market for accounting is incredibly robust. Simply not enough accounting grads to fill all the roles. There is a huge wave of partner retirements looming, making for incredible advancement opportunities. Also, a major misconception is that accounting leads to a forever career in audit. The truth is that even if you do start in audit, the opportunities that will present themselves are literally unimaginable. Also consider tax consulting (this involves very little tax return prep) and advisory/consulting (which generally doesn't require a CPA, although the CPA credential itself is highly valuable regardless of area). Even if you don't want to do an "accountant" type of job, the business knowledge that accounting provides is invaluable.
The truth about AI / automation in accounting is that it makes the job better. In fact, the data analytics revolution already has. We don't do the boring, repetitive spreadsheet work that we used to do because now we can use software to do it. This "upskills" the role of accountants to more higher-level, strategic work. Now, if you said that data analytics/ AI / automation is squeezing out accounting clerks or bookkeepers, I would agree with you, but that is a very different job from accountant.
Finally, there is a lot of teamwork and interdisciplinary collaboration that happens in accounting. I have lifelong friends from an engagement team I worked on 20+ years ago. You may often end up interacting with engineers or logistics personnel during your engagements. And of course in public accounting if you want to make it beyond manager and especially to partner, you have to be a personable individual who can schmooze and sell while also being a technical expert and having an eye for big-picture business strategy.
Start in Big 4 if you can. The connections and respect of having that on your resume pays immense dividends later on.