Yosemite lists El Portal Road as the continuation of Highway 140 from Merced and Wawona Road as the continuation of Highway 41 from Fresno. Its conditions page links to state highway information. Read both the state segment and the park segment for the approach you are considering. Yosemite road status
Check the roads before comparing the mileage
Make a row for each route using your actual starting address. Add drive time, delays or closures, any traction requirement, and the place you can stop if the road changes. If you are staying near a gateway, allow time to move to the alternative route as well as the difference inside the park.
Run the comparison again for the return, particularly if a weekday work zone or night driving affects only one option. If both routes are feasible, let one useful stop decide. For a short day, the approach that leaves enough time for an unhurried Valley walk can matter more than the approach that looks best on a map.
The Wayfinder Newsletter: one free weekly email with the week's new guides from the Wayfinder publications, some of them before they're published on the sites. You choose which publications you get.