Yes. Its the law.
Unlike most cyclists, I work to remain situationally aware so i know when one is behind me, even when they're a distance off. I know they'll be trying to haul me in so I let them knacker themselves a bit closing the distance, then I start to match them for a spell, then when I sense they are weakening I put the hammer down and clear off.
My other hobby is scalping ebike riders. Keep it above 15.5MPH and their disadvantage disappears and the bike becomes a liability. Indeed, anyone who reckons they roam the streets on a legal ebike looking for cyclists to scalp is either targeting geriatrics or talking out their arriss.