One quick hit on this comparison - yes, they are similar types of prospects entering the draft.
The difference that must be factored in is that last year's draft had poor top-tier talent. It ended up a good overall draft because of depth.
This draft has both great top-tier talent and depth. Really the best top-tier draft since 2018 with Ayton, Luka and Trae - might end up better and take on 2012 status when it's all said and done.
So just because Williams was a top four pick last year doesn't necessarily make Barnes a good pick for the Cavs at #3.
I say all that as a huge Barnes fan, I just prefer him in a trade-down if the Cavs take him.