This is true, but there’s still a bit of a gap between the two such as versions and or the existence or lack thereof of some packages here and there, along with default packages and configs. It’s why I wouldn’t throw a complete novice on a productivity mission at Debian. If they’re able to get productive on Ubuntu and learn to use it, the switch to Debian is easier.