To use Google Analytics 4 and GA Universal Analytics at the same time you have to enable 2 GA modules, set them up, and make sure that their accounts (Google calls them “properties”) are not connected.
Disconnecting is very important. GA 4 can re-use the installation tag of GA UA, which will break your tracking.