I have no idea what you are trying to do. The behaviour of the su and sudo commands has not changed in many years. It seems that every time someone attempts to pin you down and get you to explain exactly what you are trying to accomplish with the sudo command, you flip and start talking about the su command instead. They are different commands.
My advice to restore your system to its factory configuration still stands. I don’t know what you’ve done to it trying to get commands to work in some way that they were never designed to work. At this point, any valid command could fail because you have damaged your configuration.
This is the way things are supposed to work.
If you need to run a command as root, you run “sudo <cmd>“. If you want to just be root for a while, run a shell with sudo via “sudo bash”. If you want to change your login session to another user, then you would do “su <username>“. For example, I normally run with as a standard user. If I want to use sudo, I have to su to an admin user and then run sudo.
However, su may not work if you are trying to su into a disabled account. It depends on the system configuration. In this respect, macOS behaves identically to any previous version, or to any version of Linux, or even to Sun. If you just categorically refuse to run the correct command and want to reconfigure the system, then go for it. No one here will be able to help you.
Follow the instructions in this Apple support article to enable the root user: https://support.apple.com/HT204012
Then maybe su will work the way you want.