ninja and cmake --install

cmake -B build/ -D CMAKE_BUILD_TYPE=Release
cmake --build build/ --config Release -j12
cmake --install build/ --config Release --prefix C:/release/ -j12

and

cmake -B build/ -D CMAKE_BUILD_TYPE=Release
ninja install . -j12

The two method are equal ?
if yes, the ninja install . -j12 is equal to cmake --build and cmake --install ?

The first batch sets the install prefix explicitly. The second batch doesn’t set it at all. Other than that, these seem to be functionally similar.