Why do I get different dictionaries for those 2 lines?
auto const dict1( cv::aruco::getPredefinedDictionary( static_cast< int >( cv::aruco::DICT_6X6_250 ) ) );
auto const dict2( cv::aruco::generateCustomDictionary( 250, 6 ) );
Here are two charuco sample boards representing the two dictionaries: