Interestingly, my car gets better gas mileage around the 40ish speeds than I do at full highway speeds. That somewhat surprises me. It is very dependent on not having a heavy foot, of course.
The main reason why city mileage is usually lower is because of all the stopping.
For EVs, the drivetrain efficiency is so high that it's variability with operating point doesn't affect this calculation much, and so the most efficient speed of an EV is around the speed at which the fixed losses equal the aero ones. This will vary greatly with environmental conditions since AC or heating load can be large in hot or cold conditions but at the right temperature will go to near zero.
In ICE cars, the drivetrain efficiency is much lower and so the drivetrain efficiencies are a much more significant part of the optimization problem, but the basic physics of the aerodynamics are the same.
The model I used to use in my head is that for an ICE, the most efficient operating point is probably around the lowest speed the car can operate in the highest gear, so maybe around 40 mph / 60 km/h? Obviously a rough heuristic though.