Make sure you get the right type of connector.
I have not seen toilet connectors with a metal nut on the toilet end in a long time, but I suppose they are out there.
Don’t confuse what you are looking at for very similar faucet connectors, which do have metal nuts at both ends.