This is my second Simplehuman trash can and they are absolutely the best! The rectangular one I bought can be 1/4” from the wall and when you open it it does not touch the wall and mark up the paint. 
The soft close works perfectly! Expensive, but well worth it!