2.83: Snapping to edge not working correctly
Is the setting properlly?

It will snap to edge, all length of edge. It shouldn't align it for you since not all edge are in same length
So Snap it to the corner

And if you give additional axis constraints, (eg. lock to x-y plane), it might be more buggy to align on. Not sure it's intentionally designed or just a bug.