Cairo and the pyramids of Giza are practically as far away from Sharm El Sheikh as from Hurghada. However, it is further to the pharaonic sites on the Nile from Sharm El Skeikh than from Hurghada. Of course, there are still excursions lasting several days. This costs accordingly and involves a lot of driving.