Deciding Between BMW and Lexus

Im deciding between an M340i vs IS350. The M340 is alot quicker and modern, it pretty much does everything I want perfectly but Im very confused, I either hear great things about these cars or nightmare stories. I would be getting a 2021 with 40k miles. The lexus is alot more dull, still looks good but is bulletproof. I have no issue spending the money for the M340 if I know im not getting into a ticking time bomb. Id also consider a 330i as just a comfy daily driver. Anyone with experience or knowledge on the cars have any thoughts?