If a mentoring pilot wants to let you fly a while, how nice, accept the offer. But focus on the value of that as some familiarization for you rather than padding your logbook with a fraction of a flight.
For experienced pilots, that’s what most of us would do as we’ve got plenty of flights padding our logbooks. If you haven’t, you’re keen and have actually benefitted from some instruction, ad-hoc or not, then why not?
After all, a large proportion of the “flying" hours recorded at a busy airfield is made up of sitting there with the engine(s) running and the brakes set. Logging a bit of airborne time under a different category doesn’t seem quite so terrible in comparison, does it...?