About a third of my rides are on my light, carbon road bike, and the rest are on my Cannondale Topstone gravel ebike.
When I'm riding my road bike it doesn't bother me when I get passed by someone on an ebike (usually....read on). Because I own an ebike I know how fast they are, compared to me on my road bike, on even a slight hill.
A couple of weeks ago, while on a group ride, I got my a** kicked (when the road went into a long incline) by a lady (close to 80 years old) on her new Trek e-road bike. I'm a decent rider for my age (69), but she pulled away and disappeared into the distance.
I have to admit that it did bother me a bit that I couldn't even come close to keeping up with her on my 17.7 pound road bike.
On the other hand, while riding my Cannondale Topstone Lefty 3 (Bosch gen 4 motor) I wouldn't think twice about blowing by a rider on his road bike.