I'm having a hard time understanding exactly which stair part we are talking about, because a "bannister" is actually all the railing, including handrail, newels and balusters.
bannister - a railing at the side of a staircase or balcony to prevent people from falling
balusters, balustrade, banister, handrail
balcony - a platform projecting from the wall of a building and surrounded by a balustrade or railing or parapet
baluster - one of a number of closely spaced supports for a railing
barrier - a structure or object that impedes free movement
rail, railing - a barrier consisting of a horizontal bar and supports
So the second guy may be right in saying it could weaken the railing. My take on butting up to say, a landing tread
is that upper hallways are typically not very wide, 3 to 4 ft. So, I butt to the landing tread and leave expansion on the other, wall side. Makes a cleaner install. I don't undercut newels or balusters; bad idea. It's best to leave the stairs alone and butt to the stair components.