Getting out of a boats allows you to go through corners.
MC-273162 Bed and boat can make players phase through corners
MC-175682 Player can be ejected partially inside of a block when dismounting a boat