The big rise in markets in the final two months of 2023 wasn’t enough to leave the technology-heavy Nasdaq Composite up from the end of 2021.