>>2921452The answer is obviously both and it is a stupid question by default because there are a thousand different lenses and many different bodies. And very different price points.
If a lens chip and motor are shit, the body will say "hey lens, you're front-focused, pull back"
and it pulls back too far "hey lens, now you're back focused, go forward" then it goes too far forward, repeat a dozen times.
A $50,000 body won't do jack shit for AF if the $50 lens has a shitty software or hardware.
And if you have a $20,000 lens and attach it to a $200 craigslist used body that has an out-of-alignment focus mirror and dust-covered focus sensor. There's now a difference between what the focus-sensor and the image-sensor see, so your +5 front-focusing body spots that to it, the object away is out-of-focus, the lens perfectly swings the elements to get absolutely precise alignment of the image onto that misplaced focus-mirror, boom, "job complete" then when it gets to the actual image sensor which is aligned on a different plane, it's blurry every single time.
If you're worried about AF and don't want to actually do any research, just don't buy the budget bottom tier body, they'll purposefully leave off in-body focus-correction software.
And don't buy the bottom budget lens, it's far more likely to have reviews like "focus hunts a lot if lighting isn't perfect"