Hi there, I completely agree! HTTP/2 can indeed be faster than using a CDN if implemented properly. As you have mentioned, it requires some investment and proper configuration to achieve the best performance benefits.
In general, CDNs still come with certain advantages when it comes to scalability and simplicity for many users. However, forward-looking optimizations like HTTP/2 are incredibly promising for anyone wanting to create rapid-loading pages on their websites while retaining complete control over the hosting and delivery of their content.
Ultimately, different strategies work best for different contexts... but savvy optimization techniques like leveraging the speed of HTTP/2 are just one exciting route towards success in online projects!