It seems a bug might apply to you:
What is your terminal output for:
prime-select query
Yes, X11 (Xorg) is ideal for Hybrid Graphics with Nvidia, actually.
However... There is quite a lot following that bug report that may show that Gnome and their GDM is at fault, flopping back and forth between resolving the issue, and then trying to force Wayland onto users.
You may need to ensure you have GDM version 46.2-1ubuntu1~24.04.1 installed.
The summary below shows just how crazy this one got:
Summary
46.2-1ubuntu1~24.04.1
Changed NVIDIA hybrid laptops to prefer Xorg.
46.2-1ubuntu1~24.04.2
Added a fix for retrying the preferred display server when it crashes during startup.
46.2-1ubuntu1~24.04.3
Added hardware-specific rules for preferring Wayland.
46.2-1ubuntu1~24.04.4
Fixed a problem with fallback sessions when automatic login was enabled.
46.2-1ubuntu1~24.04.5
Added another hardware-specific rule to prefer Wayland — specifically Dell Gorgon Point.
46.2-1ubuntu1~24.04.7
Fixed incorrect selection of Xorg on platforms that prefer Wayland.
46.2-1ubuntu1~24.04.8
Added a specific preference for Wayland on HP AMD+NVIDIA platforms.
46.2-1ubuntu1~24.04.9
Reverted that HP AMD+NVIDIA preference.