Elena Rybakina swept aside two-time champion Naomi Osaka to reach the quarter-finals of the US Open and close in on becoming world number one.