I’m guessing some law (law-abiding) gives you the right to bother people who are using their own feet instead of wheels because you want to pass them and they should have to actively watch out for you and yield to you? Okay, that part is fine. But I don’t see how it is nice or, I dunno, ethical.
In my experience (in my locale) as a cyclist you either give pedestrians a wide enough berth, dismount so that you can pass them if it is crowded and there is no passage, or use the vehicular road.
I remember violating this one time when I belled someone that I wanted to pass on the sidewalk. But I was a child at the time. Even more self-centered than I am now.
These seeming rules for yielding to cyclists are worse than the laws and norms when cars interact with bicycles, by the way. At least where I am: cars never honk cyclists. They have to wait for them or find a window to pass them safely. They can’t honk them into the ditch or something.