2D Box Collider "Nudging" Into Wall

Is there any way to stop the player character from being “nudged” inside the wall? Although gameplay wise it doesn’t seem to affect anything, visually it keeps on bugging me. If you need the code for my player controller or my settings for rigidbody or the boxcollider or anything like that, just let me know. Thanks!


Can you share your code pls?