Far too many variables (speed, corner radius, single corner or part of a series, ground conditions etc) to take into account to give a definitive answer but as a simple guide:
Slick tyres – lean with the bike
Knobbly tyres – lean the bike more than you lean.
Doesn’t matter if the bike has an engine or not.
It’s all about grip and getting your weight in a place that maximises the grip available.
plenty of trackdays with knees on floor,
I loved passing guys (on the outside, too 8) ) on trackdays who were more concerned about getting their knee down than going fast. You don’t need to hang off the bike that far to get it round a corner fast.
edit: swooning at myself here 😆